0001-handle-date-error-for-vincennes-duonet-9530.patch
mandayejs/sites/vincennes/static/vincennes/conservatoire/js/vincennes_auth_checker.js | ||
---|---|---|
1 | 1 |
$(function(){ |
2 | 2 |
window.auth_success = function(){ |
3 |
var found = $("body").text().indexOf('Les informations de connexion'); |
|
4 |
if (found == -1) |
|
3 |
var found_auth_error = $("body").text().indexOf('Les informations de connexion'); |
|
4 |
var found_date_error = $("body").text().indexOf('Dépassement SqlDateTime. Doit être compris entre 1/1/1753 12:00:00 AM et 31/12/9999 11:59:59 PM.'); |
|
5 |
if (found_auth_error == -1 && found_date_error == -1) |
|
5 | 6 |
return true; |
6 | 7 |
return false; |
7 | 8 |
}; |
8 |
- |