fix binding email #47
This commit is contained in:
parent
22984ceef1
commit
b198ce5d35
|
|
@ -53,8 +53,11 @@ class CheckAuthenticated
|
|||
|
||||
public function askForFillingEmail($request, Closure $next)
|
||||
{
|
||||
$user = app('user.current');
|
||||
|
||||
if (isset($request->email)) {
|
||||
if (filter_var($request->email, FILTER_VALIDATE_EMAIL)) {
|
||||
|
||||
if (User::where('email', $request->email)->get()->isEmpty()) {
|
||||
$user->setEmail($request->email);
|
||||
// refresh token
|
||||
|
|
|
|||
1
plugins
Submodule
1
plugins
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 4da3db178b723c861a2c67b666498f0587c1d325
|
||||
Loading…
Reference in New Issue
Block a user