I'm trying to create an admin user, but also keep the email and password validation via the Signup form (avoiding to use create_user method directly).
I see there was a fix for the update of the Users table (almost a year ago): https://github.com/tvallotton/rocket_auth/commit/815682eaab9e5325c96246287c1bbe3963bc3ae7, but this is not yet available if I add the crate version 0.4.0, without the --git flag.
Currently I have to add a normal user via the Signup form, get the user and set its is_admin flag to true and modify the user (but this only works if I add the crate with the --git flag...), basically manually upgrading the user to admin status which feels a bit unnatural.
Would it be possible to publish this fix above as a new crate version, or maybe add a SignupAdmin form which would set is_admin to true by default?
Hello,
I'm trying to create an admin user, but also keep the email and password validation via the Signup form (avoiding to use
create_user
method directly). I see there was a fix for the update of the Users table (almost a year ago): https://github.com/tvallotton/rocket_auth/commit/815682eaab9e5325c96246287c1bbe3963bc3ae7, but this is not yet available if I add the crate version 0.4.0, without the--git
flag.Currently I have to add a normal user via the Signup form, get the user and set its
is_admin
flag to true and modify the user (but this only works if I add the crate with the--git
flag...), basically manually upgrading the user to admin status which feels a bit unnatural.Would it be possible to publish this fix above as a new crate version, or maybe add a SignupAdmin form which would set
is_admin
to true by default?