Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Checking user accounts on login

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 419 Views
  • Parker1090
    Avatar
    Community Member
    38 Posts

    Checking user accounts on login Link to this post

    Hi All,
    Please bear with me - still a newbie to this (but I like it and willing to learn!)

    I've successfully extended the member table in the database, to contain information on address, telephone number etc., as well as two fields for 'AcceptTerms' (Boolean), and 'Enabled' (also boolean). What I need to do is, check if the account has been activated or not, and only allow the log in if it has, otherwise reject them.

    The other thing I need to do, is if 'AcceptTerms' is false, display a link to the terms and conditions, and allow them to accept (update field, and continue with login).

    As I said, I'm willing to learn, so I'm looking for more of guidance rather than answers. Any help would be gratefully appreciated!

    Many Thanks,
    Matt

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Checking user accounts on login Link to this post

    Check out this tutorial - http://www.ssbits.com/tutorials/2009/custom-login-form-with-group-based-redirection/. The custom login form is what you'll be wanting to do.

  • Parker1090
    Avatar
    Community Member
    38 Posts

    Re: Checking user accounts on login Link to this post

    Thanks - will take a look and have a go.

    Thank you

    419 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.