Skip to content

password field for admin UI (not related to e107 users) - how to set md5 for it and only for it? #5173

Answered by Deltik
Jimmi08 asked this question in Q&A Core
Discussion options

You must be logged in to vote

I see that users_admin_ui::beforeUpdate() uses UserHandler::HashPassword(), so I would say mutate the password input in an override of e_admin_ui::beforeUpdate(). When rendering the form, leave the password blank to signify no changes, and update the password only if the password field is filled out.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Jimmi08
Comment options

@Deltik
Comment options

Answer selected by Jimmi08
@Moc
Comment options

@Jimmi08
Comment options

@Moc
Comment options

@Jimmi08
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants