Fossil SCM
Removed some no-longer valid comments after confirming that JSON mode works without cookies. Dumbed-down the various login errors by default (again).
Commit
52229655df3272f1e89420847b299ec87d853cf1
Parent
13cc3b823ffbb0d…
1 file changed
+1
-11
+1
-11
| --- src/json.c | ||
| +++ src/json.c | ||
| @@ -895,27 +895,17 @@ | ||
| 895 | 895 | } |
| 896 | 896 | |
| 897 | 897 | /* |
| 898 | 898 | ** Implementation of the /json/login page. |
| 899 | 899 | ** |
| 900 | -** NOT YET FINSIHED! | |
| 901 | -** TODOs: | |
| 902 | -** | |
| 903 | -** - anonymous user login (requires separate handling | |
| 904 | -** due to random password). | |
| 905 | -** | |
| 906 | -** - more testing with ONLY the JSON-specified authToken | |
| 907 | -** (no cookie). In theory that works but we don't yet have | |
| 908 | -** a non-browser client to play with. | |
| 909 | -** | |
| 910 | 900 | */ |
| 911 | 901 | cson_value * json_page_login(void){ |
| 912 | 902 | static char preciseErrors = |
| 913 | 903 | #if 0 |
| 914 | 904 | g.json.errorDetailParanoia ? 0 : 1 |
| 915 | 905 | #else |
| 916 | - 1 | |
| 906 | + 0 | |
| 917 | 907 | #endif |
| 918 | 908 | ; |
| 919 | 909 | /* |
| 920 | 910 | FIXME: we want to check the GET/POST args in this order: |
| 921 | 911 | |
| 922 | 912 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -895,27 +895,17 @@ | |
| 895 | } |
| 896 | |
| 897 | /* |
| 898 | ** Implementation of the /json/login page. |
| 899 | ** |
| 900 | ** NOT YET FINSIHED! |
| 901 | ** TODOs: |
| 902 | ** |
| 903 | ** - anonymous user login (requires separate handling |
| 904 | ** due to random password). |
| 905 | ** |
| 906 | ** - more testing with ONLY the JSON-specified authToken |
| 907 | ** (no cookie). In theory that works but we don't yet have |
| 908 | ** a non-browser client to play with. |
| 909 | ** |
| 910 | */ |
| 911 | cson_value * json_page_login(void){ |
| 912 | static char preciseErrors = |
| 913 | #if 0 |
| 914 | g.json.errorDetailParanoia ? 0 : 1 |
| 915 | #else |
| 916 | 1 |
| 917 | #endif |
| 918 | ; |
| 919 | /* |
| 920 | FIXME: we want to check the GET/POST args in this order: |
| 921 | |
| 922 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -895,27 +895,17 @@ | |
| 895 | } |
| 896 | |
| 897 | /* |
| 898 | ** Implementation of the /json/login page. |
| 899 | ** |
| 900 | */ |
| 901 | cson_value * json_page_login(void){ |
| 902 | static char preciseErrors = |
| 903 | #if 0 |
| 904 | g.json.errorDetailParanoia ? 0 : 1 |
| 905 | #else |
| 906 | 0 |
| 907 | #endif |
| 908 | ; |
| 909 | /* |
| 910 | FIXME: we want to check the GET/POST args in this order: |
| 911 | |
| 912 |