52 Commits (b3e7c3f29490b69524a048ebd4849e6eb9d7f52e)

Author SHA1 Message Date
Adriaan de Groot b3e7c3f294 [users] Run checks more often
- check password warnings when the page is entered
 - re-check (and translate) on language change
6 years ago
Adriaan de Groot cc66903678 [users] Allow an explicit check for non-emptiness of passwords
- move the explicit checking for non-empty into a specific
   (normal) password check
 - leave only the-two-fields-are-equal outside of the password-
   requirements framework
 - having non-empty is the same as minLength 1, but gives a different
   error message
6 years ago
Adriaan de Groot 196a358493 [users] Flag password problems even when weak-passwords are ok
- when you allow weak passwords, flag problems as warnings (yellow)
 - when weak passwords aren't allowed, they are fatal errors (red)
6 years ago
Adriaan de Groot a4e3ea2a86 [users] Refactor retranslation
- move retranslation to a method so that code-formatting doesn't
   get confused by it.
6 years ago
Adriaan de Groot 28c9da414b [users] Apply coding style 6 years ago
Adriaan de Groot 9fa817a244 [users] Refactor password-validation
- add a method that does the work and sets UI strings for a
   generic double-field password entry
 - use that for user and root passwords
6 years ago
Adriaan de Groot 7d25173afb [users] Remove TODO since it doesn't make sense
- the two explicit checks are the ones that handle *two*
   strings as special cases; all the other checks from
   the password-requirements system only handle the one string.
6 years ago
Adriaan de Groot 93eb169ea5 [users] Improve error messages
- distinguish beginning of username from the rest
 - must start with a letter or _
 - tighten message for bad username and bad hostname

FIXES #1261
6 years ago
Adriaan de Groot 8232ca626c [users] Refactor constants 6 years ago
Adriaan de Groot 9cd1ef93bd [users] Apply coding style 6 years ago
Adriaan de Groot 9ee0609b72 [users] Use tooltips
- the explanations under and around the boxes is noisy,
   hard to size correctly (viz. issue #1202)
 - use tooltips in almost-all fields instead
 - add placeholder text to be more suggestive
6 years ago
Adriaan de Groot 21bcd560b1 [users] Use API to change weak-checkbox visibility 6 years ago
Adriaan de Groot eb90757063 [users] Apply coding style (lots of churn) 6 years ago
bill-auger 1513934a57
add checkbox to disable password validations 6 years ago
Adriaan de Groot 8d0f076591 [libcalamares] Rename CalamaresUtils -> String
- The only remaining functions in the file are string-related, so
   rename to match their purpose.
 - Drop this include file from most places, since they don't actually
   use the string functionality at all.
6 years ago
Arnaud Ferraris 6463e5f83c [users] Adjust messages to setup mode
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Adriaan de Groot ebc9a00bcf [users] Massage text widths
- Make the explanations about 3 times as wide as the text-boxes
   that they are explaining. This is partly moot because the
   text-boxes have fixed pixel sizes in the designer file, but keep
   it flexible for now.
6 years ago
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
7 years ago
Adriaan de Groot 3315df5df1 [modules] Use new convenience logging methods across the board 7 years ago
Adriaan de Groot d27675d660 i18n: drop superfluous QObject* parent
These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
7 years ago
Adriaan de Groot 1d6dca062c [users] Make state of 'reuse password for root' available in globals. 8 years ago
Adriaan de Groot 354cb79cb1 [users] sample config and stub function for libpwquality 8 years ago
Adriaan de Groot 27e1de6548 [users] Use libpwquality for additional password checks
- add cmake module to find libpwquality
 - move checking functions to their own file
 - some Transifex hackery
 - stub out the libpwquality check
8 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Adriaan de Groot 13807ceabf Licensing: add self
- to all the files I've touched recently
 - to (very incomplete) AUTHORS list

Licensing: add license info to top-level CMakeLists.txt
8 years ago
Adriaan de Groot 1c52f961a6 Refactor password-errors-indication (again)
- set message and status icon in one go
 - only check until an error is found
 - Mark TODO for passwordRequirements
8 years ago
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 #790
8 years ago
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.
9 years ago
Teo Mrnjavac 701d7d8a62 Be sure to validate user name even if empty. 9 years ago
Teo Mrnjavac 22470ba4af Disallow next if the root password is not reused or provided.
CAL-344 #close
10 years ago
demmm f267410dbb different names 10 years ago
demmm c89bd1db23 implement https://calamares.io/bugs/browse/CAL-341 10 years ago
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.
10 years ago
Teo Mrnjavac bbd8fe6203 Allow reusing the user password as root password. 10 years ago
Teo Mrnjavac cb83e22ded Make sure the FullName is not empty. 10 years ago
Teo Mrnjavac baa3553db5 Add CalamaresUtils::obscure. 10 years ago
Teo Mrnjavac 4ae55d0108 Allow setting the default for autologin/no autologin. 10 years ago
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.
10 years ago
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.
10 years ago
Gormogon e2d05cb9f2 Align Pointers 10 years ago
Teo Mrnjavac 8ad507e379 Improve input validation in UsersPage.
CAL-190 #close
10 years ago
Teo Mrnjavac e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 11 years ago
Teo Mrnjavac fb37a0bf2f Fix focus in UsersPage. 11 years ago
Teo Mrnjavac 78de47eb8c Retranslate Users module. 11 years ago
Rohan Garg b587a0ff00 Add support to set the hostname 11 years ago
Teo Mrnjavac ad68ce0187 Make default groups, users group and autologin group configurable. 11 years ago
Teo Mrnjavac 87711c89fc Use common icons in users viewmodule. 11 years ago
Teo Mrnjavac 0404413b05 Store active user in GlobalStorage as username. 11 years ago
Teo Mrnjavac ee4a0f1cba Add support for full name, and user/host autocompletion and validation. 11 years ago
Teo Mrnjavac 57ee5ac26b Add autologinUser to GlobalStorage. 11 years ago