From d233fdedbe8db69e64e40dfbe474a7cf8f22e3b1 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Thu, 8 Jun 2023 12:03:07 +0800 Subject: [PATCH] use sha256 encrypt password Signed-off-by: Chenx221 --- .../chenx221/controller/UserController.class | Bin 1801 -> 4206 bytes .../cyou/chenx221/mapper/UserMapper.class | Bin 279 -> 331 bytes .../classes/cyou/chenx221/pojo/User.class | Bin 1165 -> 1310 bytes .../WEB-INF/classes/mapper/UserMapper.xml | 5 ++- .../WEB-INF/views/login.jsp | 36 +++++++++++++++++- .../chenx221/controller/UserController.java | 24 ++++++++---- project2/web/WEB-INF/views/login.jsp | 10 ++++- 7 files changed, 63 insertions(+), 12 deletions(-) diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class index 964c78d9119fb0e7c0a7885de3797b0376904ec8..15d763082f650ae0dd2f27a483c229ac26409407 100644 GIT binary patch literal 4206 zcmb7H`*Rc575=U*c_mqZ5g1Si=1pv{5w9As2*DWaxR^&Un1@^1wY1m^(yp?*0!-T! zQ(j3R&?G!eY0WE`A3}gMgL$OsZ|zK{KlVQevQ1|??N6OfCT;rdt}QSYF7kjb2atz+37#OlC=e*xBkz+V30Z56Y;4)1#4Le=6{@CMD+TgP z%bNV~!7m{YL?MC#uf^K+bR^cMXa^Q8S{RAxnq}yTgknUtnu<}A?Ft0a99S=>Qi>rk zyzL!ih>x6kigXcp)WADRk3WJtK03jCMOkviqeLs%W1R>Rcnow zJ?A>5@6jE{Q3>M(CJ%MweBC6Q=6>CX2QUs3Y@8+v6z4MC6hIiSNSGYNtC%7%F^4fb zI)Oq)J7`v5d}-P6Ky7bRgP3L;8c+4LTFhuqSxS6xUH~&NQ^KquW@FBfopYDUom1XU z%L((jXx)8{mhJSRR6t59rYW~7KFk#e_H{mb(s``+#F@-{U4X7`LP?Lcb;lKF_RiFouSaj7E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k{zj64O0@eBKP1V^bHwxK-6=eSAV*`~=)0w?gUi&EZS zD1#g_!=BLcP}E&*c?IFPh!DpXhhEPj@C=aNu=kH*arr&GQRKUVpwpOkePBjSc1C_> zL4Ku_U+K%Q^cVYWt*ba)UhKbzwUvS5K+%FLD56+?4Sr8$K{t}@$X8&0I(QvpDXLwK zosNdojddKG-i0W|sxB;{nAwF2idkKlLovGxQz>?JVG_lhF2~5+F305j%eI@sZWMSb zeMkJF`#Y_;pcA8trB3*YeVqg0*Js1evc>;7*3Anu?2?Cg3%G}^j}YGBj`Uz>mDh$Q z?0tYA=D`6{c5Sd73n^K94xX*qF1NyE)CZW!b}2VvF2<8j)A;jaCfUy)A6SA#sKsJz zW@{^!Vmm3`Os?%h6*DGEF0CK|UguV?#8te3n^=WD-o5{d)%Y7~@DJ+!6ScyNIx&`4 z=_S=*iWItO2>}P9${cL?m`}vNZod+I7#2P0LT=qvX zX6Cn;LHdvWj;Rok;FIjG`(Ms+!9Uhs@sAAl)tZKhJH zEyWQ!EIJ*!=+<>LlkTC{BI}UjsQ#+P^Zg3zkspS&W#8tQ!ui>JzuSEFEA z=Y+*chf@sc5#wnwugC;`eI@YkKdF}MweZ2cMlGn@6eZOUf=00Tzt|c5%@}JPR+tYP z%PWt!ew%AbzqStPOiQP}YiD(z{Y8Ijy}il+HimSq1k*UeBNDX;pA|NQ%{V$IQCT7- zZ06shHsj+_!AK14j0r{sM8G%`!ir(elORf77dC|}`8QaF9oh`4$yG1;k(`&@CR5zT zYjU{c_PGN)3?{hap57?A1-G;xl{X|iLFCvYp3os~T{6sWhVUrRE3VnNi_w2h`(22q zeAT$K3X`&nE?nUPQ-Kt8C~=WXB$<}qHtG)rOWrP;Lr#)rL_WKO3c1YO5{Az_S0Y&8 csz|(qXs*e+9!kxF?W7zT+=%h!!Auun53Tc4I{*Lx diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/UserMapper.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/UserMapper.class index ae211d6e3b11c99b9b36f466481767e6cbe8dbea..92691044bbc58034d47165f7baea1871996b57d7 100644 GIT binary patch delta 82 zcmbQvbef6l)W2Q(7#J9A8F(jhHSuNU6{i-JgaQdh1{sZs1(HmfVG}#^)tOir8CV(E d7#M&wI|Bz$0}}%$nB-#M2GVQ{j0`*s3;<{$4n+U} delta 53 zcmX@jG@Xg-)W2Q(7#J9A8Mr5MHBH=+BhSdf$iT|L1{7mrUN44gokje(JYi-7?E DSm6jL diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/User.class index 36437399d6d4464681e62b63cfe68032028abc66..c324c8a39fa2761caabf81a7de62e5c884a90605 100644 GIT binary patch delta 295 zcmZvW&5gn^6okiitR)dF%Wnujn*a_$36y|D8?=D9bE5+;>pMN51+Bz^0w{tKC}G7A zI3i2q@q6>V=dHW*yvzUT3}A+2@6Clw#=isM3E|qQJTEoc5U8`ifP~^*PX8d%?1)l2 zIij*>Nuoim!l72ERk*0(lUS3L=!wBci!Tn~`Qp%rtIff$?3=9mm3~C#>92h5;Fg{}Bm>kZuk6DUAdh$dTVJ-FzKxrlhQ6S02 zzz8IT7{q`i517r$AkH8Gr0G#sCzXoX;XY`7bjEvmApw$dJj>EP|3! zSoJ9|C{A`|QDv0_>XQfRlV?@}>rs(Z!m3^wsQw&Ky&6!xI@lh5Rt|O*pc|MNQ~?7_ B9Nho_ diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml index d330f74..a6100bf 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/UserMapper.xml @@ -8,5 +8,8 @@ FROM user WHERE username = #{username} - + + INSERT INTO user (username, password) + VALUES (#{username}, #{password}) + diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/login.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/login.jsp index e9ad369..8dd3c4c 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/login.jsp +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/login.jsp @@ -124,7 +124,7 @@
-
+

用户注册

@@ -182,6 +182,27 @@
+ +