From 34da0d4eada592b9ae2b7743abaec783be9b5ba6 Mon Sep 17 00:00:00 2001 From: miguel456 Date: Sun, 9 Oct 2022 21:42:19 +0100 Subject: [PATCH] feat(social-login): add section to set new pass Signed-off-by: miguel456 --- .../user/profile/useraccount.blade.php | 62 ++++++++++++++----- 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/resources/views/dashboard/user/profile/useraccount.blade.php b/resources/views/dashboard/user/profile/useraccount.blade.php index fc6a7a8..1ffb360 100755 --- a/resources/views/dashboard/user/profile/useraccount.blade.php +++ b/resources/views/dashboard/user/profile/useraccount.blade.php @@ -263,30 +263,60 @@ @endif -
{{__('Change Password')}}
-

{{__('Change your password here. This will log you out from all existing sessions for your security.')}}

+ @if (Auth::user()->hasDiscordConnection()) -
+
{{ __('Your :appName account is linked to Discord', ['appName' => config('app.name')]) }}
- @csrf - @method('PATCH') - - -

{!! __('Forgot password? Reset it here!') !!}

+

{!! __('Your account is linked to Discord, which means you only need your Discord account credentials and two-factor code (if enabled) to sign in. If you would like to change your password, you will need to do so in your Discord account settings. Please read this article to learn more.', ['articleLink' => 'https://support.discord.com/hc/en-us/articles/218410947-I-forgot-my-Password-Where-can-I-set-a-new-one-']) !!}

-
+

{{ __('Alternatively, you can unlink your Discord account and set a password which you can use to sign in. Please note that any roles and/or privileges you may have been given as a result of this integration may be automatically removed until you link your Discord account again.') }}

- - + + @csrf + @method('PATCH') - - +

{{ __('Setting a new password:') }}

-
+
+
+ + +
- +
+ + +
+
- + + + @else +
{{__('Change Password')}}
+

{{__('Change your password here. This will log you out from all existing sessions for your security.')}}

+ +
+ + @csrf + @method('PATCH') + + +

{!! __('Forgot password? Reset it here!') !!}

+ +
+ + + + + + + +
+ +
+ + + @endif
{{__('Two Factor Authentication')}}