Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18928

ezmbpaex : After updating password, the user should have a message that the password was updated

    XMLWordPrintable

Details

    Description

      Hi,

      on ezmbpaex, when we update the password after the same has expired, we should have a message saying that the password was updated.

      Steps to reproduce
      Register new user
      -Go to plain site
      -Click "login" in top menu
      -Click "Sign up" button
      -Register new user:
        First name : te
        Last name : st
        Username : test
        Password : test1
        Confirm password : test1
        Email : [whatever email address tester has access to]
      -Click "Register" button
      -Verify that you get a "account was successfully created" message
      -Click "OK" button
      -Wait for confirmation email
      -Access the activation URL received in the email
      -Validate that you get message that account has been activated
      -Click "OK" button
      -Click "Logout" in top menu
      
      Log in
      -Click "Login" in top menu
      -Provide login data:
        Username : test
        Password : test1
      -Click "Login" button
      - Verify that you are logged in
      -Click "Logout" in top menu
      
      Test notifiaction
      In order to skip waiting for password expiration, we'll manipulate the database a bit using mysql SQL commands
      On the command line, go to the test instance ( .run/ directory )
      - $ php runcronjobs.php send_expiry_notifications
      You'll get error messages like "Error user_object disabled or not found. UserID: 4". Ignore these errors (ref bug #015404 )
      - mysql> update ezx_mbpaex set password_last_updated=unix_timestamp(now())-86500 where contentobject_id > 45;
       (FYI : 86500 is 1day+)
      - $ php runcronjobs.php send_expiry_notifications
      -Verify that you get "Sent 1 notifications."
      -Check email account and verify that you receive the notification (URL (hostname) might be wrong in notification, but that is OK for now)
      
      Verify that you can still login
      -Go to plain site
      -Click "login" in top menu
      -Log in with test/test2
      -Verify that you are able to log in
      Click "Logout" in top menu
      
      Expire the user
      -On the command line, go to the test instance ( .run/ directory )
      -mysql> update ezx_mbpaex set password_last_updated=unix_timestamp(now())-260000 where contentobject_id > 45;
       (FYI : 260000 is 3day+)
      
      Verify that user password has expired
      -Go to plain site
      -Click "login" in top menu
      -Log in with test/test2
      -Verify that you are sent to "Change password for user" page
      -Enter form data:
       Old password : test2
       New password : test1
       Retype passwprd : test1
      
      

      After the last step of the sequence above, we should have some kind of "Password successfully updated." message

      Attachments

        Activity

          People

            unknown unknown
            pcardiga pcardiga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: