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).

stephan 2011-09-18 10:40 UTC json
Commit 52229655df3272f1e89420847b299ec87d853cf1
1 file changed +1 -11
+1 -11
--- src/json.c
+++ src/json.c
@@ -895,27 +895,17 @@
895895
}
896896
897897
/*
898898
** Implementation of the /json/login page.
899899
**
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
-**
910900
*/
911901
cson_value * json_page_login(void){
912902
static char preciseErrors =
913903
#if 0
914904
g.json.errorDetailParanoia ? 0 : 1
915905
#else
916
- 1
906
+ 0
917907
#endif
918908
;
919909
/*
920910
FIXME: we want to check the GET/POST args in this order:
921911
922912
--- 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

Keyboard Shortcuts

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