|
@@ -258,15 +258,11 @@
|
|
|
$.post(loginAddress, {"username": username, "password": magic, "rmbme": rmbme}).done(function(data){
|
|
|
if (data.error !== undefined){
|
|
|
//Something went wrong during the login
|
|
|
-
|
|
|
- //LDAP Related Code
|
|
|
- if(data.error.indexOf("Redirection=") == 0){
|
|
|
- window.location.href = data.error.split("Redirection=")[1];
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
$("#errmsg").text(data.error);
|
|
|
$("#errmsg").parent().slideDown('fast').delay(5000).slideUp('fast');
|
|
|
+ }else if(data.redirect !== undefined){
|
|
|
+ //LDAP Related Code
|
|
|
+ window.location.href = data.redirect;
|
|
|
}else{
|
|
|
//Login succeed
|
|
|
if (redirectionAddress == ""){
|