Fossil SCM
Update [6c8c93a5f7] to fix redirects to the captcha screen and set the keyboard focus to the password input field if there's no user ID input field.
Commit
b8731485b02898912d883087565ed920b6207fcb87a49e38715e48267c3f6462
Parent
63712b631c7e1e0…
1 file changed
+2
-2
+2
-2
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -807,11 +807,11 @@ | ||
| 807 | 807 | @ </tr> |
| 808 | 808 | } |
| 809 | 809 | @ <tr> |
| 810 | 810 | @ <td class="form_label" id="pswdlabel">Password:</td> |
| 811 | 811 | @ <td><input aria-labelledby="pswdlabel" type="password" id="p" \ |
| 812 | - @ name="p" value="" size="30"> | |
| 812 | + @ name="p" value="" size="30"%s(anonFlag ? " autofocus" : "")> | |
| 813 | 813 | if( anonFlag ){ |
| 814 | 814 | @ </td></tr> |
| 815 | 815 | @ <tr> |
| 816 | 816 | @ <td></td><td>\ |
| 817 | 817 | captcha_speakit_button(uSeed, "Read the password out loud"); |
| @@ -1972,11 +1972,11 @@ | ||
| 1972 | 1972 | blob_appendf(&redir, "%R/login?g=%T", zPathInfo); |
| 1973 | 1973 | } |
| 1974 | 1974 | if( zQS && zQS[0] ){ |
| 1975 | 1975 | blob_appendf(&redir, "%%3f%T", zQS); |
| 1976 | 1976 | } |
| 1977 | - if( anonOk ) blob_append(&redir, "&anon", 5); | |
| 1977 | + if( anonOk ) blob_append(&redir, "&anon=1", 7); | |
| 1978 | 1978 | cgi_redirect(blob_str(&redir)); |
| 1979 | 1979 | /* NOTREACHED */ |
| 1980 | 1980 | assert(0); |
| 1981 | 1981 | } |
| 1982 | 1982 | } |
| 1983 | 1983 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -807,11 +807,11 @@ | |
| 807 | @ </tr> |
| 808 | } |
| 809 | @ <tr> |
| 810 | @ <td class="form_label" id="pswdlabel">Password:</td> |
| 811 | @ <td><input aria-labelledby="pswdlabel" type="password" id="p" \ |
| 812 | @ name="p" value="" size="30"> |
| 813 | if( anonFlag ){ |
| 814 | @ </td></tr> |
| 815 | @ <tr> |
| 816 | @ <td></td><td>\ |
| 817 | captcha_speakit_button(uSeed, "Read the password out loud"); |
| @@ -1972,11 +1972,11 @@ | |
| 1972 | blob_appendf(&redir, "%R/login?g=%T", zPathInfo); |
| 1973 | } |
| 1974 | if( zQS && zQS[0] ){ |
| 1975 | blob_appendf(&redir, "%%3f%T", zQS); |
| 1976 | } |
| 1977 | if( anonOk ) blob_append(&redir, "&anon", 5); |
| 1978 | cgi_redirect(blob_str(&redir)); |
| 1979 | /* NOTREACHED */ |
| 1980 | assert(0); |
| 1981 | } |
| 1982 | } |
| 1983 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -807,11 +807,11 @@ | |
| 807 | @ </tr> |
| 808 | } |
| 809 | @ <tr> |
| 810 | @ <td class="form_label" id="pswdlabel">Password:</td> |
| 811 | @ <td><input aria-labelledby="pswdlabel" type="password" id="p" \ |
| 812 | @ name="p" value="" size="30"%s(anonFlag ? " autofocus" : "")> |
| 813 | if( anonFlag ){ |
| 814 | @ </td></tr> |
| 815 | @ <tr> |
| 816 | @ <td></td><td>\ |
| 817 | captcha_speakit_button(uSeed, "Read the password out loud"); |
| @@ -1972,11 +1972,11 @@ | |
| 1972 | blob_appendf(&redir, "%R/login?g=%T", zPathInfo); |
| 1973 | } |
| 1974 | if( zQS && zQS[0] ){ |
| 1975 | blob_appendf(&redir, "%%3f%T", zQS); |
| 1976 | } |
| 1977 | if( anonOk ) blob_append(&redir, "&anon=1", 7); |
| 1978 | cgi_redirect(blob_str(&redir)); |
| 1979 | /* NOTREACHED */ |
| 1980 | assert(0); |
| 1981 | } |
| 1982 | } |
| 1983 |