Support Forums
ATutor Bug Reports
javascript required for login
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
| skodak | Subject: javascript required for login | |
| Hello, I was told that accessible sites should work without javascript, but aTutor does not seem to allow you to log in if your turn of javascript in your browser. It just says following which is imho confusing: The following errors occurred: Invalid login/password combination. Possible solutions: 1/ use server side detection for missing password hashing and display proper "JS disabled" error (I suppose it would not satisfy the accessibility requirements, right?) 2/ rewrite the login logic to allow it to work without JS (less secure on open wifi) Petr Posted: 2011-06-22 03:44:37 | ||
greg![]() | Subject: Re: javascript required for login | |
| While that may have been the case 5 years ago, a requirement of WCAG 1.0, it is now recognised that JS can be created in an accessible manner. Provided JS is created to be accessible, there's nothing wrong with using it. Functioning without JS is no longer an accessibility requirement. Granted the error message with JS off could be improved. Posted: 2011-06-22 08:56:31 | ||
| skodak | Subject: Re: javascript required for login | |
| Oh, great news for me as a developer, sorry for the confusion. Something like the following code in login/index.php around line 118 should do the trick I think: if (!$used_cookie and $this_password === '') { $msg->addError('NO_JAVASCRIPT'); } else if($_config['max_login'] > 0 && $attempt_login >= $_config['max_login']){ Thanks a lot for the info. Posted: 2011-06-22 09:11:05 | ||
| skodak | Subject: Re: javascript required for login | |
| grrr, I meant code in /login.php of course Posted: 2011-06-22 09:13:17 | ||
| rosegood88 | Subject: spammer | |
| spammer rosejohn4571@yahoo.com Posted: 2011-07-11 16:13:30 | ||
| Candan | Subject: Re: spammer | |
| 1256913900@qq.com Posted: 2011-10-13 05:28:47 | ||
| Missman | Subject: Re: spammer | |
| 173541377@qq.com Posted: 2011-11-12 03:25:57 | ||
| Page: 1 | ||
You must be signed-in to post.



