X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fauth%2FAuthenticationResponse.php;h=956c985069dd314cbe8cd4f289fbf48efb91ffeb;hp=6684fb958fcfe62e46c754dbb99dce2921e22c84;hb=36395150104588f2afea866c330b683e4329fa48;hpb=eb2f439768d34254964e798d9523211ba8ea2f5f diff --git a/includes/auth/AuthenticationResponse.php b/includes/auth/AuthenticationResponse.php index 6684fb958f..956c985069 100644 --- a/includes/auth/AuthenticationResponse.php +++ b/includes/auth/AuthenticationResponse.php @@ -133,7 +133,7 @@ class AuthenticationResponse { */ public static function newPass( $username = null ) { $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::PASS; + $ret->status = self::PASS; $ret->username = $username; return $ret; } @@ -145,7 +145,7 @@ class AuthenticationResponse { */ public static function newFail( Message $msg ) { $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::FAIL; + $ret->status = self::FAIL; $ret->message = $msg; $ret->messageType = 'error'; return $ret; @@ -158,7 +158,7 @@ class AuthenticationResponse { */ public static function newRestart( Message $msg ) { $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::RESTART; + $ret->status = self::RESTART; $ret->message = $msg; return $ret; } @@ -169,7 +169,7 @@ class AuthenticationResponse { */ public static function newAbstain() { $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::ABSTAIN; + $ret->status = self::ABSTAIN; return $ret; } @@ -189,7 +189,7 @@ class AuthenticationResponse { } $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::UI; + $ret->status = self::UI; $ret->neededRequests = $reqs; $ret->message = $msg; $ret->messageType = $msgtype; @@ -209,7 +209,7 @@ class AuthenticationResponse { } $ret = new AuthenticationResponse; - $ret->status = AuthenticationResponse::REDIRECT; + $ret->status = self::REDIRECT; $ret->neededRequests = $reqs; $ret->redirectTarget = $redirectTarget; $ret->redirectApiData = $redirectApiData;