diff --git a/public/static/js/account/account.js b/public/static/js/account/account.js index d0bc3f6..f78622a 100644 --- a/public/static/js/account/account.js +++ b/public/static/js/account/account.js @@ -3,7 +3,7 @@ var Account = { countdown: null, openGoogleAuthenticate: function () { - window.open('/account/googleAuthenticate', 'googleAuthenticate', 'height=600,width=600') + window.open(googleAuthenticateUrl, 'googleAuthenticate', 'height=600,width=600') }, authenticatedWithGoogleCallback: function (authenticatedWithGoogleUntil) { diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index 8c30a49..346822e 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -113,8 +113,8 @@ class LoginController if ($user === null || !$user->checkPassword($this->request->post('password'))) { return new JsonContent([ 'error' => [ - 'errorText' => 'No user found with the given email address / username or the given password is wrong. You can request password reset!' + 'errorText' => 'No user found with the given email address / username or the given password is wrong. You can request password reset!' ] ]); } @@ -127,7 +127,7 @@ class LoginController public function loginWithGoogle() { - $defaultError = 'Authentication with Google failed. Please try again!'; + $defaultError = 'Authentication with Google failed. Please try again!'; if ($this->request->user() !== null) { $this->deleteRedirectUrl(); diff --git a/src/Controller/OAuthController.php b/src/Controller/OAuthController.php index 0156209..9b771f9 100644 --- a/src/Controller/OAuthController.php +++ b/src/Controller/OAuthController.php @@ -110,10 +110,10 @@ class OAuthController { return new JsonContent([ 'issuer' => $_ENV['APP_URL'], - 'authorization_endpoint' => $this->request->getBase() . '/oauth/auth', - 'token_endpoint' => $this->request->getBase() . '/oauth/token', - 'userinfo_endpoint' => $this->request->getBase() . '/oauth/userinfo', - 'jwks_uri' => $this->request->getBase() . '/oauth/certs', + 'authorization_endpoint' => $this->request->getBase() . '/' . \Container::$routeCollection->getRoute('oauth-auth')->generateLink(), + 'token_endpoint' => $this->request->getBase() . '/' . \Container::$routeCollection->getRoute('oauth-token')->generateLink(), + 'userinfo_endpoint' => $this->request->getBase() . '/' . \Container::$routeCollection->getRoute('oauth-userinfo')->generateLink(), + 'jwks_uri' => $this->request->getBase() . '/' . \Container::$routeCollection->getRoute('oauth-certs')->generateLink(), 'response_types_supported' => [ 'code', diff --git a/views/account/account.php b/views/account/account.php index b24e73d..27e6dcc 100644 --- a/views/account/account.php +++ b/views/account/account.php @@ -5,7 +5,7 @@ @section(main)

Account

-
+

Please confirm your identity with your password or with Google to modify your account.

@@ -39,3 +39,9 @@
@endsection + +@section(pageScript) + +@endsection diff --git a/views/login/login.php b/views/login/login.php index d8dabfb..3573a1d 100644 --- a/views/login/login.php +++ b/views/login/login.php @@ -3,17 +3,17 @@ @section(main)

Login

-
+

-

Forgot your password?

+

Forgot your password?


diff --git a/views/login/password_reset_request.php b/views/login/password_reset_request.php index 8f7c32b..466606b 100644 --- a/views/login/password_reset_request.php +++ b/views/login/password_reset_request.php @@ -5,7 +5,7 @@ @section(main)

Request password reset

-
+
diff --git a/views/login/reset_password.php b/views/login/reset_password.php index f88903f..49714f1 100644 --- a/views/login/reset_password.php +++ b/views/login/reset_password.php @@ -4,7 +4,7 @@

Reset password

- + @@ -14,7 +14,7 @@
-

Confirming your identity failed. Please check the link you entered, or retry requesting password reset!

+

Confirming your identity failed. Please check the link you entered, or retry requesting password reset!

@endsection diff --git a/views/templates/layout_normal.php b/views/templates/layout_normal.php index f942d23..aa33e81 100644 --- a/views/templates/layout_normal.php +++ b/views/templates/layout_normal.php @@ -10,14 +10,14 @@

user()) : ?> - + user()->getDisplayName() ?>Logout + -->Logout