Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-4895

User life cycle: inactivation email date has to be cleared after login

    XMLWordPrintable

    Details

      Description

      When a user receives an inactivation email and logins to renew his account the inactivation email date has to be cleared for a proper functionality in the future:

      diff --git a/src/main/java/org/olat/basesecurity/BaseSecurityManager.java b/src/main/java/org/olat/basesecurity/BaseSecurityManager.java
      index 9246c6b..f27123b 100644
      --- a/src/main/java/org/olat/basesecurity/BaseSecurityManager.java
      +++ b/src/main/java/org/olat/basesecurity/BaseSecurityManager.java
      @@ -1207,7 +1207,9 @@
       
       	@Override
       	public void setIdentityLastLogin(IdentityRef identity) {
      -		identityDao.setIdentityLastLogin(identity, new Date());
      +		IdentityImpl id = (IdentityImpl)loadIdentityByKey(identity.getKey());
      +		id.setInactivationEmailDate(null);
      +		id.setLastLogin(new Date());
       		dbInstance.commit();
       	}
       	
       

        Figma for Jira By 42nd

          Attachments

            Activity

              People

              Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: