Skip to content

Commit

Permalink
Fix a bug: password wrong length
Browse files Browse the repository at this point in the history
When we use `MD5` we'll store the hex strong of the hash value, which
is 32 characters long.
  • Loading branch information
Kaiser-Yang committed Aug 21, 2024
1 parent 875ff6f commit f28e8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/diagram/gcs_back_end.drawio
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
<mxRectangle width="30" height="30" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="6WugjG2xhQJgWSEuV__S-166" value="user_password character(128) NOT NULL" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;" parent="6WugjG2xhQJgWSEuV__S-164" vertex="1">
<mxCell id="6WugjG2xhQJgWSEuV__S-166" value="user_password character(32) NOT NULL" style="shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;" parent="6WugjG2xhQJgWSEuV__S-164" vertex="1">
<mxGeometry x="30" width="510" height="30" as="geometry">
<mxRectangle width="510" height="30" as="alternateBounds" />
</mxGeometry>
Expand Down
2 changes: 1 addition & 1 deletion database/table/t_user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE public.t_user (
id bigint NOT NULL,
username character varying(50) NOT NULL,
email character varying(254) NOT NULL,
user_password character(128) NOT NULL,
user_password character(32) NOT NULL,
gmt_created timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
gmt_updated timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
gmt_deleted timestamp without time zone
Expand Down

0 comments on commit f28e8b2

Please sign in to comment.