Merge pull request #2605 from EnesSacid-Buker/master
Disable email input on reset page
This commit is contained in:
commit
b6b2cf1484
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
/>
|
||||
|
@ -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) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user