From f3c977aa9d15eafeeaf524e55aaaa2bfcc101790 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 10 May 2023 02:37:01 -0700 Subject: [PATCH] Nicer button Signed-off-by: snipe --- resources/lang/en/auth/general.php | 2 +- resources/views/auth/login.blade.php | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/resources/lang/en/auth/general.php b/resources/lang/en/auth/general.php index 6c1bf826f0..4486f090b2 100644 --- a/resources/lang/en/auth/general.php +++ b/resources/lang/en/auth/general.php @@ -12,7 +12,7 @@ return [ 'remember_me' => 'Remember Me', 'username_help_top' => 'Enter your username to be emailed a password reset link.', 'username_help_bottom' => 'Your username and email address may be the same, but may not be, depending on your configuration. If you cannot remember your username, contact your administrator.

Usernames without an associated email address will not be emailed a password reset link. ', - 'google_login' => 'Login via Google', + 'google_login' => 'Or login with Google Workspace', 'google_login_failed' => 'Google Login failed, please try again.', ]; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 9d1f371cf4..1e37e3acb2 100755 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -73,33 +73,30 @@ -
+
@if ($snipeSettings->custom_forgot_pass_url) {{ trans('auth/general.forgot_password') }} @elseif (!config('app.require_saml')) {{ trans('auth/general.forgot_password') }} @endif -
+
+ @if (($snipeSettings->google_login=='1') && ($snipeSettings->google_client_id!='') && ($snipeSettings->google_client_secret!='')) + + + {{ trans('auth/general.google_login') }} + + @endif +