ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can I force a user via code to change password?

November 08, 2011 1:47pm

Subscribe [2]
  • #1 / Nov 08, 2011 1:47pm

    carvingCode

    380 posts

    Has anyone come up with a coding way to force a user to change their password? I often have to reset a user’s password, but for security reasons can’t ask them what they would like their password to be.  Therefore, I would like to code something like:

    if (password == 'password') {
    
      displayPasswordChangeForm();
    
    } else {
    
      showHomePage();

    Any ideas on what I could try?

    TIA

  • #2 / Nov 09, 2011 11:56am

    grantmx

    1439 posts

    You could probably just use Solsapce User which will retrieve their old password using the Forgot Password feature.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases