Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
a6350094
Commit
a6350094
authored
Nov 28, 2019
by
dqjdda
Browse files
更新sql脚本
parent
f0b31a35
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/eladmin-user.sql
0 → 100644
View file @
a6350094
#
用户加密方式变动,改为
BCryptPasswordEncoder
方式:
SHA
-
256
+
随机盐
+
密钥对密码进行加密,替换后的明文密码为
123456
update
user
set
`password`
=
"$2a$10$HhxyGZy.ulf3RvAwaHUGb.k.2i9PBpv4YbLMJWp8pES7pPhTyRCF."
WHERE
`password`
=
"e10adc3949ba59abbe56e057f20f883e"
\ No newline at end of file
sql/eladmin.sql
View file @
a6350094
...
...
@@ -728,7 +728,7 @@ CREATE TABLE `user` (
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT
INTO
`user`
VALUES
(
1
,
NULL
,
'admin@eladmin.net'
,
1
,
'
e10adc3949ba59abbe56e057f20f883e
'
,
'admin'
,
2
,
'18888888888'
,
11
,
'2018-08-23 09:11:56'
,
'2019-05-18 17:34:21'
);
INSERT
INTO
`user`
VALUES
(
1
,
NULL
,
'admin@eladmin.net'
,
1
,
'
$2a$10$fP.426qKaTmix50Oln8L.uav55gELhAd0Eg66Av4oG86u8km7D/Ky
'
,
'admin'
,
2
,
'18888888888'
,
11
,
'2018-08-23 09:11:56'
,
'2019-05-18 17:34:21'
);
INSERT
INTO
`user`
VALUES
(
3
,
NULL
,
'test@eladmin.net'
,
1
,
'e10adc3949ba59abbe56e057f20f883e'
,
'test'
,
2
,
'17777777777'
,
12
,
'2018-12-27 20:05:26'
,
'2019-04-01 09:15:24'
);
-- ----------------------------
...
...
Write
Preview
Supports
Markdown
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