Skip to content
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

Fixes #16567: Be able to add a hashed password #227

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented Jan 17, 2020

@ElaadF ElaadF force-pushed the ust_16567/be_able_to_add_a_hashed_password branch 6 times, most recently from 9f6c651 to adbfdff Compare January 20, 2020 16:06
@ElaadF ElaadF force-pushed the ust_16567/be_able_to_add_a_hashed_password branch from adbfdff to b689236 Compare January 23, 2020 12:47
@@ -65,6 +67,8 @@ type alias Model =
, userFocusOn : User
, password : String
, login : String
, hashedPasswd : Bool
, clearPasswd : Bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need both boolean, I would only keep hashedPassword

else
({model | addMod = On, editMod = Off}, Cmd.none)
ActivePanelSettings username ->
({model | addMod = Off, editMod = On, userFocusOn = username}, Cmd.none)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could have the same thing for to close modification if you click on the same user name

if editMod = On and userFocusOn = username
  editMode = Off
else 
  on

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also need to change you model so you don't have addMod and EditMod but a panelMode of type PanelMode that has 3 value : Closed | AddMode | EditMode String (the username we modify)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will allow to remove from model the "userFocusOn"

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit b689236 into Normation:branches/rudder/6.0 Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants