Commit 3a2b7620 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Merge branch 'fix_18354_unknown_user_exception' into 'develop'

Fix 18354 unknown user exception

See merge request !685
parents 04f8912e 5881cd31
Pipeline #13778 failed with stages
in 49 seconds
......@@ -20,7 +20,7 @@
namespace bundle\auth\Exception;
class unknownUserException
extends \Exception
extends \core\Exception
{
public $message = false;
......@@ -28,11 +28,13 @@ class unknownUserException
* undocumented function
*
* @return void
* @author
* @author
*/
public function __construct()
public function __construct($message = false, $code = 401)
{
$this->message = "User unknown";
if (!$message) {
$message = "User unknown";
}
parent::__construct($message, $code);
}
}
......@@ -496,3 +496,6 @@ msgstr "Mauvais nombre de colonnes dans le csv à la ligne %s"
msgid "User has an unknown security level"
msgstr "L'utilisateur a un niveau de sécurité non renseigné dans la configuration. Veuillez contacter votre administrateur système"
msgid "User unknown"
msgstr "Utilisateur inconnu du système"
......@@ -3,7 +3,7 @@
<div id="page-wrapper" style="padding-bottom: 50px;">
<div id="loadingModal" style="display: none">
<span style="z-index:2; background-color: rgba(200,200,200,0.3); position: fixed; height: 100%; width: 100% "></span>
<div style="position: fixed; z-index:3; bottom: 50%; right: 42%;">
<div style="position: fixed; z-index:3; bottom: 50%; right: 47%;">
<i class="fa fa-spinner fa-spin fa-5x" ></i>
</div>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment