Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Can't seem to get Member LockedOutUntil to work?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 695 Views
  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Can't seem to get Member LockedOutUntil to work? Link to this post

    So I set a Member's "LockedOutUntil" field in the db well into the future and then attempt to login -> which then happens, that is, althought the LockedOutUntil date is in the future it allows me to Login.

    Am I missing something simple here? Does this func work? Is there a switch or something? I've had a look thru core/api/docs/forums but can't find much in the way of help at all.

    If it makes a difference, I'm working with a subclass of Member. ... just tried it on a Member (rather than the subclassed user) and setting a 'LockedOutUntil' date doesn't make a difference for me there either.

    A heads up on how I can get this working would be oustanding

    Cheers
    dizzy

  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Re: Can't seem to get Member LockedOutUntil to work? Link to this post

    hmmm.. when I do a vardump of the $this inside function isLockedOut() on Line 220 of Member.php, I don't see the LockedOutUntil field in the dump at all? But it's clearly there in the $db array for Member.php. If I vardump $this->LockedOutUntil I'm getting null (but in the db there's clearly a date, in correct format).

    (I'm attempting a login for the particular Member which is how I'm kicking off the vardump.)

    PasswordExpiry, AutoLoginHash, AutoLoginExpired & RememberLoginToken are all missing in the vardump of the Member too. All seem to be related to authentication.

    695 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.