Change all the "new class" by "new Class"

This commit is contained in:
2021-05-07 13:10:37 +02:00
parent c8d275be31
commit c09fa961cd
39 changed files with 430 additions and 432 deletions

View File

@@ -40,10 +40,10 @@ class Authshibboleth extends Auth
{
if ($this->urlAuthentificated !== "")
{
$route = new route ();
$route = new Route ();
$route->redirect ($this->urlAuthentificated);
}
throw new Exception ("Unable to authenticate user '$email'", 401);
throw new \Exception ("Unable to authenticate user '$email'", 401);
}
}
@@ -73,10 +73,10 @@ class Authshibboleth extends Auth
{
// Redirect to Shibboleth IDP
if ($this->urlPasswdChange == "")
throw new Exception (dgettext ("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be change for Shibboleth users"),
405);
$route = new route ();
$route = new Route ();
$route->redirect ($this->urlPasswdChange);
}
@@ -87,7 +87,7 @@ class Authshibboleth extends Auth
@param string $newpassword The new password to be recorded */
public function overwritepassword ($email, $newpassword)
{
throw new exception (dgettext ("domframework",
throw new \Exception (dgettext ("domframework",
"The password can't be overwrite for Shibboleth users"),
405);
}
@@ -99,7 +99,7 @@ class Authshibboleth extends Auth
if ($this->urlLogout === "")
throw new \Exception (dgettext ("domframework",
"Shibboleth is not configured to allow logout"), 405);
$route = new route ();
$route = new Route ();
$route->redirect ($this->urlLogout);
}
}