Closes #581
This commit is contained in:
parent
e37eb6c157
commit
9390f6f4d6
6 changed files with 131 additions and 100 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,6 +15,7 @@ Homestead.json
|
|||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
yarn.lock
|
||||
.gitignore
|
||||
.env.dev
|
||||
.env.testing
|
||||
|
|
|
@ -131,8 +131,9 @@ class ProfileController extends Controller
|
|||
'name' => $request->input('name'),
|
||||
'email' => $request->input('email'),
|
||||
]);
|
||||
$user->reVerifyEmail();
|
||||
$user->sendEmailVerificationNotification();
|
||||
|
||||
|
||||
return redirect()->route('profile.index')->with('success', __('Profile updated'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,4 +266,11 @@ class User extends Authenticatable implements MustVerifyEmail
|
|||
'email_verified_at' => now(),
|
||||
])->save();
|
||||
}
|
||||
|
||||
public function reVerifyEmail()
|
||||
{
|
||||
$this->forceFill([
|
||||
'email_verified_at' => null,
|
||||
])->save();
|
||||
}
|
||||
}
|
||||
|
|
4
public/css/app.css
vendored
4
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
214
public/js/app.js
vendored
214
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
|||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1{{__('Users')}}</h1>
|
||||
<h1>{{__('Users')}}</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
|
|
Loading…
Reference in a new issue