New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for user edit bug => Issue #58 #79
Conversation
@Xelaflash Hello, thank you for your pull request. We are using prettier to format the files, can you run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, just a I18n key missing, waiting to the fix.
required: true, | ||
label_html: { class: "form-label label-small" }, | ||
input_html: { autocomplete: "current-password", class: 'form-text' } %> | ||
<i class="form-label label-small my-1">(we need your current password to confirm your changes)</i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add this text to I18n ?
https://github.com/vczb/gamou/tree/main/config/locales
create a new key on config/locales/en/en.yml and add this text like this
I18n.t('my.new.key')
its necessary replicate add this content on pt-BR locale too config/locales/pt-BR/pt-BR.yml with te content
"Precisamos de sua senha atual para confirmar suas alterações"
If you need help im available
@Xelaflash i don't understand why need the password three times. What you think about the password confirmation is the last information on the form ? just one time only, use the * CURRENT PASSWORD |
Hi, For the password fields, they are part of Devise default views and also default strong params. Just confirm what you decide. |
ok, good answer, we can keep the 3 password fields, but lets move to the last input of the form ? |
Or just move the * CURRENT PASSWORD to the down of * DIAMOND PRICE IN CENTS, will be good! PR preview: |
…ing text / change in app controller after prettier format
Changes have been made.
|
You are the best, thank you! |
…text / change in app controller after prettier format
…text / change in app controller after prettier format
What this Pull Request do ?
Fixing the edit user bug (issue #58)
Fix:
• Some mandatory Devise config for strong params where missing in
app/controllers/application_controllers.rb
• In
app/views/devise/registrations/edit.html.erb
: the default fields (password
,password_confirmation
andcurrent_password
) were not present in the form preventing the save action forUser#edit
to pass.(note: current password is mandatory for Devise#edit action)
Close an issue ? please insert the hash
Close #58
Required migrations ?
[] yes [x] no
Add a new gem ?
[] yes [x] no
Add a new package ?
[] yes [x] no