File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
custom_components/reflex_local_auth Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,10 @@ def verify(self, secret: str) -> bool:
42
42
password = secret .encode ("utf-8" ),
43
43
hashed_password = self .password_hash ,
44
44
)
45
+
46
+ def dict (self , * args , ** kwargs ) -> dict :
47
+ """Return a dictionary representation of the user."""
48
+ d = super ().dict (* args , ** kwargs )
49
+ # Never return the hash when serializing to the frontend.
50
+ d .pop ("password_hash" , None )
51
+ return d
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
8
8
[project ]
9
9
name = " reflex-local-auth"
10
- version = " 0.0.1 "
10
+ version = " 0.0.2 "
11
11
description = " Reflex custom component local-auth"
12
12
readme = " README.md"
13
13
license = { text = " Apache-2.0" }
You can’t perform that action at this time.
0 commit comments