File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 5656 $ maintenance_mode_error = $ app ->lng ('error_maintenance_mode ' );
5757}
5858
59- //* Login Form was sent
60- if (count ($ _POST ) > 0 ) {
61-
59+ /**
60+ * @param app $app
61+ * @param $error
62+ * @param $conf
63+ * @param $module
64+ * @return void
65+ */
66+ function process_login_request (app $ app , &$ error , $ conf , $ module )
67+ {
6268 //** Check variables
6369 if (!preg_match ("/^[\w\.\-\_\@]{1,128}$/ " , $ app ->functions ->idn_encode ($ _POST ['username ' ]))) $ error = $ app ->lng ('user_regex_error ' );
6470 if (!preg_match ("/^.{1,256}$/i " , $ _POST ['password ' ])) $ error = $ app ->lng ('pw_error_length ' );
307313 }
308314}
309315
316+ //* Login Form was sent
317+ if (count ($ _POST ) > 0 ) {
318+ process_login_request ($ app , $ error , $ conf , $ module );
319+ }
320+
310321// Maintenance mode - show message when people try to log in and also when people are forcibly logged off
311322if ($ maintenance_mode_error != '' ) $ error = '<strong> ' .$ maintenance_mode_error .'</strong><br><br> ' .$ error ;
312323if ($ error != '' ) {
You can’t perform that action at this time.
0 commit comments