Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » Get User to change password on next login

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1060 Views
  • macka
    Avatar
    Community Member
    22 Posts

    Get User to change password on next login Link to this post

    Hi Guys,
    I was wondering, is it possible to get the user to change their password after logging in?

    I was about to import a heap of people into the forum and i would like them all to change their passwords as they login...

    Grant

  • johnmblack
    Avatar
    Community Member
    61 Posts

    Re: Get User to change password on next login Link to this post

    Very interested in hearing any solutions.

  • JonoM
    Avatar
    Community Member
    103 Posts

    Re: Get User to change password on next login Link to this post

    Looking at the Member table there is a PasswordExpiry column which accepts a date. For all members you want to have reset their password - maybe try setting that date to a date in the past? I assume this would force a member to change their password upon next login.

    If that doesn't work another possibility is to use the MemberPassword table - all previous passwords are stored here for any member (so if required you can ensure members don't use a previous password). You could write some simple SQL to count the number of passwords stored here for a particular member, if the count is only 1 then you can assume they're using the original password you generated for them and prompt them to change it.

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