Commit Graph

76 Commits (45b71c24e771d69d22699337bbd030590eb1ed4f)

Author SHA1 Message Date
Adriaan de Groot d839f8e0b3 Passwords: introduce password-checking
- Introduce a map 'passwordRequirements' in users.conf,
   which is a list of named requirements. There are only
   two settings right now, min and max length, but
   additional checks can easily be added in UsersPage.cpp
   by defining additional lambda's to check the given
   password string.
 - Add PasswordCheck instances as needed, with functions
   to check acceptability and to produce messages on rejection.
 - Documentation in the users.conf file itself.

 - In passing, refactor setting of pixmaps on labels.

FIXES 
Teo Mrnjavac c09a28919e Make sure to disable the root password if setRootPassword is false.
CAL-442 #comment This should be fixed now, please test and report back.
Teo Mrnjavac 701d7d8a62 Be sure to validate user name even if empty.
Teo Mrnjavac 22470ba4af Disallow next if the root password is not reused or provided.
CAL-344 #close
demmm f267410dbb different names
demmm c89bd1db23 implement https://calamares.io/bugs/browse/CAL-341
codeworkx b412937699 don't set default "users" group on home dirs
Fixes CAL-345.

Changing group of home dir to the default "users" group might be a security risk
because every user which belongs to the default "users" group
might be able to access private data on home dirs of other users.
Teo Mrnjavac bbd8fe6203 Allow reusing the user password as root password.
Teo Mrnjavac cb83e22ded Make sure the FullName is not empty.
Teo Mrnjavac baa3553db5 Add CalamaresUtils::obscure.
Teo Mrnjavac 4ae55d0108 Allow setting the default for autologin/no autologin.
Teo Mrnjavac b85e2d777e If we don't ask for a root password, allow going forward without it.
CAL-248 #close Should be fixed, please test.
Teo Mrnjavac 46e90ccda2 Add setRootPassword option to the Users module.
If set to true, the user must set a root password. Otherwise, the
user won't be asked and a root password will not be set.
Gormogon e2d05cb9f2 Align Pointers
Teo Mrnjavac 8ad507e379 Improve input validation in UsersPage.
CAL-190 #close
Teo Mrnjavac e258f0b5a9 Use onActivate instead of focusInEvent for page focus control.
Teo Mrnjavac fb37a0bf2f Fix focus in UsersPage.
Teo Mrnjavac 78de47eb8c Retranslate Users module.
Rohan Garg b587a0ff00 Add support to set the hostname
Teo Mrnjavac ad68ce0187 Make default groups, users group and autologin group configurable.
Teo Mrnjavac 87711c89fc Use common icons in users viewmodule.
Teo Mrnjavac 0404413b05 Store active user in GlobalStorage as username.
Teo Mrnjavac ee4a0f1cba Add support for full name, and user/host autocompletion and validation.
Teo Mrnjavac 57ee5ac26b Add autologinUser to GlobalStorage.
Teo Mrnjavac b111027d57 Add SetPasswordJob in Users module, hook it all up.
Teo Mrnjavac fb32432548 UI for users viewmodule.