Commit 7212cf0
Mark Ericksen
Forgot password now matches email without case consideration. Fixes #8861
Updates forgot_password to use newer (and already existing) named scopes
for better searching. Uses a case-insensitive search by email that is
supported on multiple databases. Additional minor refactor to clean up code
and only do the search if an email is given. Blanks don't count anymore.
Testing Notes:
* Create a user with a CommunicationChannel email that has mixed case like
"Tom.Thumb@example.com"
* Doing a "forgot password" from login should now match and generate an email.
Change-Id: I1bec847fbae8b43e949210b010aa2cfad438ce55
Reviewed-on: https://gerrit.instructure.com/11193
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>1 parent 8e116ea commit 7212cf0
2 files changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
0 commit comments