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

The forgot password form is case sensitive

    XMLWordPrintable

    Details

      Description

      When typing an uppercase letter in the forgot password form, the username is not found. Here's the patch:

      diff -r 19ee2a792013 src/main/java/org/olat/registration/EmailOrUsernameFormController.java
      — a/src/main/java/org/olat/registration/EmailOrUsernameFormController.java Mon Nov 25 16:07:01 2013 +0100
      +++ b/src/main/java/org/olat/registration/EmailOrUsernameFormController.java Wed Dec 04 11:40:47 2013 +0100
      @@ -90,7 +90,7 @@

      • @return The email address or username entered by the user
        */
        public String getEmailOrUsername() { - return emailOrUsername.getValue(); + return emailOrUsername.getValue().toLowerCase(); }

      public void setUserNotIdentifiedError() {

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Florian Gnägi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m