-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
R-428 sivel2_gen. mejora seguridad en Devise #64
base: main
Are you sure you want to change the base?
Conversation
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.
Favor implementar cambios
@@ -0,0 +1,2 @@ | |||
<%= f.input :password %> | |||
<%= f.input :password_confirmation %> |
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.
Favor quitar confirmación de clave. No me parece necesaria para creación de un usuario por parte de un administrador que es este contexto.
@@ -118,7 +118,8 @@ def lista_params_sip | |||
:idioma, | |||
:email, | |||
:tema_id, | |||
:encrypted_password, | |||
:encrypted_password, | |||
:password_confirmation, |
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.
Quitar
lib/sip/concerns/models/usuario.rb
Outdated
validates_presence_of :password, :on=>:create | ||
validates_confirmation_of :password, :on=>:create | ||
validate :password_complexity | ||
def password_complexity |
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.
Nombres de funciones en español
@@ -81,8 +82,14 @@ def fechadeshabilitacion_posible? | |||
end | |||
end | |||
|
|||
validates_presence_of :encrypted_password, :on=>:create | |||
validates_confirmation_of :encrypted_password, :on=>:create | |||
validates_presence_of :password, :on=>:create |
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.
No me parece que cambie encrypted_password por password
No veo sus pruebas tras ese cambio, por favor probar como afecta sivel2, cor1440 y si_jrscol |
Prueba: (probado en sivel2, sijrscol y cor1440). Se quitó lo de confirmación de contraseña. sin embargo se probó que la validación de presencia de password solo funciona con password y no con encrpted passwors. pienso que es por que se realiza la validación antes de encriptarse. igualmente se prueba la complejidad de password. IMG_0054.MOV |
|
Se realizaron las siguientes implementaciones para fortalecer seguridad en la aplicación: