Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-02-14 01:09:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
09f2d8de3b3e55bcd8aab75b49dc40817c0545d4
09f2d8de
1 parent
a99d73f7
1.打印注册日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/Http/Controllers/V1/AuthController.php
app/Http/Controllers/V1/AuthController.php
View file @
09f2d8d
...
...
@@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
use
App\Models\User
;
use
App\Models\UserProfile
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Validator
;
use
Jiannei\Response\Laravel\Support\Facades\Response
;
use
Laravel\Socialite\Facades\Socialite
;
...
...
@@ -138,6 +139,7 @@ class AuthController extends Controller
$redis
=
Redis
::
connection
();
if
(
$request
->
verify_code
!=
'123123'
){
Log
::
channel
(
"daily"
)
->
debug
(
"走到这里了"
.
$request
->
verify_code
);
if
(
$redis
->
get
(
$request
->
email
)
!==
$request
->
verify_code
){
return
Response
::
fail
(
'verify code failed'
,
500
);
}
...
...
Please
register
or
login
to post a comment