Skip to content

Commit a635009

Browse files
committed
更新sql脚本
1 parent f0b31a3 commit a635009

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

sql/eladmin-user.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 用户加密方式变动,改为 BCryptPasswordEncoder方式: SHA-256 +随机盐+密钥对密码进行加密,替换后的明文密码为 123456
2+
update user set `password` = "$2a$10$HhxyGZy.ulf3RvAwaHUGb.k.2i9PBpv4YbLMJWp8pES7pPhTyRCF." WHERE `password` = "e10adc3949ba59abbe56e057f20f883e"

sql/eladmin.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ CREATE TABLE `user` (
728728
-- ----------------------------
729729
-- Records of user
730730
-- ----------------------------
731-
INSERT INTO `user` VALUES (1, NULL, '[email protected]', 1, 'e10adc3949ba59abbe56e057f20f883e', 'admin', 2, '18888888888', 11, '2018-08-23 09:11:56', '2019-05-18 17:34:21');
731+
INSERT INTO `user` VALUES (1, NULL, '[email protected]', 1, '$2a$10$fP.426qKaTmix50Oln8L.uav55gELhAd0Eg66Av4oG86u8km7D/Ky', 'admin', 2, '18888888888', 11, '2018-08-23 09:11:56', '2019-05-18 17:34:21');
732732
INSERT INTO `user` VALUES (3, NULL, '[email protected]', 1, 'e10adc3949ba59abbe56e057f20f883e', 'test', 2, '17777777777', 12, '2018-12-27 20:05:26', '2019-04-01 09:15:24');
733733

734734
-- ----------------------------

0 commit comments

Comments
 (0)