[-] BO : fix bug #PSFV-421 - bug with redirection after login

This commit is contained in:
tDidierjean
2012-02-14 16:29:21 +00:00
parent 9ce993fd4c
commit c4f2d0e202
4 changed files with 51 additions and 36 deletions
+9 -2
View File
@@ -15,7 +15,13 @@ function displayLogin() {
$('#login').revertFlip();
return false;
}
function doAjaxLogin() {
/**
* Check user credentials
*
* @param string redirect name of the controller to redirect to after login (or null)
*/
function doAjaxLogin(redirect) {
$('#error').hide();
$('#ajax-loader').fadeIn('slow', function() {
$.ajax({
@@ -29,7 +35,8 @@ function doAjaxLogin() {
controller: "AdminLogin",
submitLogin: "1",
passwd: $('#passwd').val(),
email: $('#email').val()
email: $('#email').val(),
redirect: redirect
},
success: function(jsonData) {
if (jsonData.hasErrors) {