Fossil SCM
Go to the login page after a successful self-service password reset.
Commit
837f2758681ee50f12cf8666b86f8dc963e3c45d3ca8858fb96cdcf221342258
Parent
d860e2b5f6222f8…
1 file changed
+5
-1
+5
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -1066,11 +1066,15 @@ | ||
| 1066 | 1066 | @ <p><span class='loginError'> |
| 1067 | 1067 | @ %s(zErr); |
| 1068 | 1068 | @ </span></p> |
| 1069 | 1069 | fossil_free(zErr); |
| 1070 | 1070 | }else{ |
| 1071 | - redirect_to_g(); | |
| 1071 | + @ <p>Password changed successfully. Go to the | |
| 1072 | + @ <a href="%R/login?u=%t(g.zLogin)">Login</a> page and log in | |
| 1073 | + @ using the new password to continue. | |
| 1074 | + @ </p> | |
| 1075 | + style_finish_page(); | |
| 1072 | 1076 | return; |
| 1073 | 1077 | } |
| 1074 | 1078 | } |
| 1075 | 1079 | } |
| 1076 | 1080 | zRPW = fossil_random_password(12); |
| 1077 | 1081 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -1066,11 +1066,15 @@ | |
| 1066 | @ <p><span class='loginError'> |
| 1067 | @ %s(zErr); |
| 1068 | @ </span></p> |
| 1069 | fossil_free(zErr); |
| 1070 | }else{ |
| 1071 | redirect_to_g(); |
| 1072 | return; |
| 1073 | } |
| 1074 | } |
| 1075 | } |
| 1076 | zRPW = fossil_random_password(12); |
| 1077 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -1066,11 +1066,15 @@ | |
| 1066 | @ <p><span class='loginError'> |
| 1067 | @ %s(zErr); |
| 1068 | @ </span></p> |
| 1069 | fossil_free(zErr); |
| 1070 | }else{ |
| 1071 | @ <p>Password changed successfully. Go to the |
| 1072 | @ <a href="%R/login?u=%t(g.zLogin)">Login</a> page and log in |
| 1073 | @ using the new password to continue. |
| 1074 | @ </p> |
| 1075 | style_finish_page(); |
| 1076 | return; |
| 1077 | } |
| 1078 | } |
| 1079 | } |
| 1080 | zRPW = fossil_random_password(12); |
| 1081 |