Skip to content

Commit

Permalink
Merge pull request #6 from ch-saeki/fix_passwd_view_type
Browse files Browse the repository at this point in the history
fix to set password input type.
  • Loading branch information
asehmi committed Mar 8, 2022
2 parents 6f3cc8e + 319161d commit edc57de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/auth.py
Expand Up @@ -144,7 +144,7 @@ def _create_user(name=const.BLANK, pwd=const.BLANK, is_su=False, mode='create'):
st.subheader('Create user')
username = st.text_input("Enter Username (required)", value=name)
if mode == 'create':
password = st.text_input("Enter Password (required)", value=pwd)
password = st.text_input("Enter Password (required)", value=pwd, type='password')
elif mode == 'edit':
# Do not display password as DB stores them encrypted
# Passwords will always be created anew in edit mode
Expand Down

0 comments on commit edc57de

Please sign in to comment.