Visit the URL below in browser:
http://localhost/api/backend/password/yourpassword
{
"code":0,
"message":"OK",
"password":{
"salt":"8O5ax1E",
"encrypted":"6507cd41df36680b25f2775dbc48ef67cbbc4def"
}
}
New User
Execute the SQL in adminer
INSERT INTO `Users`
(name,
displayname,
salt,
password,
createdat,
updatedat)
VALUES ('yourusername',
'Your Display Name',
'8O5ax1E',
'6507cd41df36680b25f2775dbc48ef67cbbc4def',
Now(),
Now())
Done.
Reset Password
Execute the SQL in adminer
UPDATE `Users`
SET `password` = '6507cd41df36680b25f2775dbc48ef67cbbc4def',
`salt` = '8O5ax1E'
WHERE `name` = 'yourusername'
Done.
本文提供了一步一步的说明,演示如何通过SQL命令在adminer中创建新用户和重置密码。首先,通过访问给定的URL获取用户密码的盐和加密值,然后在Users表中插入新用户记录。接着,展示了如何更新已有用户的密码,通过设置新的盐和加密密码值完成重置过程。

被折叠的 条评论
为什么被折叠?



