File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 38
38
$ sessiontoken = "" ;
39
39
$ attempts = 0 ;
40
40
41
- #==============================================================================
42
- # Check captcha
43
- #==============================================================================
44
- if ($ use_captcha ) { $ result = global_captcha_check ();}
45
-
46
- if (! ($ result === "" ) ) {
47
- # result was already set
48
- # done this way to keep indentation
49
- } elseif (!$ crypt_tokens ) {
41
+ if (!$ crypt_tokens ) {
50
42
$ result = "crypttokensrequired " ;
51
43
} elseif (isset ($ _REQUEST ["smstoken " ]) and isset ($ _REQUEST ["token " ])) {
52
44
$ token = strval ($ _REQUEST ["token " ]);
106
98
$ result = "emptysendsmsform " ;
107
99
}
108
100
109
- # Check the entered username for characters that our installation doesn't support
110
101
if ( $ result === "" ) {
111
- $ result = check_username_validity ($ login ,$ login_forbidden_chars );
102
+ # Check captcha
103
+ if ($ use_captcha ) {
104
+ $ result = global_captcha_check ();
105
+ }
106
+ # Check the entered username for characters that our installation doesn't support
107
+ if ( $ result === "" ) {
108
+ $ result = check_username_validity ($ login ,$ login_forbidden_chars );
109
+ }
112
110
}
113
111
114
112
#==============================================================================
261
259
}
262
260
}
263
261
}
264
-
265
262
}
266
263
267
264
#==============================================================================
You can’t perform that action at this time.
0 commit comments