Merge pull request #2605 from EnesSacid-Buker/master

Disable email input on reset page
This commit is contained in:
Cüneyt Şentürk 2022-08-19 10:12:55 +03:00 committed by GitHub
commit b6b2cf1484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -176,7 +176,7 @@ class User extends Authenticatable implements HasLocalePreference
*/
public function sendPasswordResetNotification($token)
{
$this->notify(new Reset($token));
$this->notify(new Reset($token, $this->email));
}
/**

View File

@ -19,9 +19,10 @@ class Reset extends Notification
*
* @param string $token
*/
public function __construct($token)
public function __construct($token, $email)
{
$this->token = $token;
$this->email = $email;
}
/**
@ -45,7 +46,7 @@ class Reset extends Notification
{
return (new MailMessage)
->line(trans('auth.notification.message_1'))
->action(trans('auth.notification.button'), route('reset', $this->token))
->action(trans('auth.notification.button'), route('reset', ['token' => $this->token, 'email' => $this->email]))
->line(trans('auth.notification.message_2'));
}
}

View File

@ -30,8 +30,9 @@
<x-form.group.email
name="email"
:value="$email"
:disabled="! is_null($email) ? true : false"
label="{{ trans('general.email') }}"
placeholder="{{ trans('general.email') }}"
form-group-class="sm:col-span-6"
input-group-class="input-group-alternative"
/>

View File

@ -43,6 +43,7 @@
name="{{ $name }}"
id="{{ $id }}"
value="{{ $value }}"
disabled="{{ $disabled }}"
placeholder="{{ $placeholder }}"
v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.' . $name : 'form.' . $name) }}"
{{ $attributes->merge($custom_attributes) }}