Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ucenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
88ddb501
authored
Jan 18, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改密码接口
parent
5619d8c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/Http/Services/UserService.php
app/Http/Services/UserService.php
View file @
88ddb501
...
...
@@ -104,6 +104,8 @@ class UserService
//修改密码
public
static
function
changePassword
(
$ucId
,
$password
)
{
$salt
=
UserModel
::
where
(
'uc_id'
,
$ucId
)
->
value
(
'salt'
);
$password
=
PasswordService
::
passwordHash
(
$password
,
$salt
);
return
UserModel
::
where
(
'uc_id'
,
$ucId
)
->
update
([
'password'
=>
$password
,
'update_time'
=>
time
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment