Fossil SCM

Go to the login page after a successful self-service password reset.

drh 2023-01-07 15:35 self-service-password-reset
Commit 837f2758681ee50f12cf8666b86f8dc963e3c45d3ca8858fb96cdcf221342258
1 file changed +5 -1
+5 -1
--- src/login.c
+++ src/login.c
@@ -1066,11 +1066,15 @@
10661066
@ <p><span class='loginError'>
10671067
@ %s(zErr);
10681068
@ </span></p>
10691069
fossil_free(zErr);
10701070
}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();
10721076
return;
10731077
}
10741078
}
10751079
}
10761080
zRPW = fossil_random_password(12);
10771081
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button