Adriaan de Groot
e11c9a049f
[users] Sort the password checks before applying them
2019-11-08 13:21:37 +01:00
Adriaan de Groot
dec0cfb7d3
[users] Give password-checks a weight, to sort them later
2019-11-08 13:16:19 +01:00
Adriaan de Groot
b3e7c3f294
[users] Run checks more often
...
- check password warnings when the page is entered
- re-check (and translate) on language change
2019-11-02 19:26:40 +01:00
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
2019-11-02 19:23:04 +01:00
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)
2019-11-01 14:48:46 +01:00
Adriaan de Groot
a4e3ea2a86
[users] Refactor retranslation
...
- move retranslation to a method so that code-formatting doesn't
get confused by it.
2019-11-01 13:55:32 +01:00
Adriaan de Groot
28c9da414b
[users] Apply coding style
2019-11-01 13:55:32 +01:00
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
2019-11-01 13:55:32 +01:00
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.
2019-11-01 13:17:31 +01:00
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
2019-11-01 13:05:58 +01:00
Adriaan de Groot
8232ca626c
[users] Refactor constants
2019-10-29 16:21:26 +01:00
Adriaan de Groot
9cd1ef93bd
[users] Apply coding style
2019-10-29 16:20:52 +01:00
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
2019-10-29 14:37:26 +01:00
Adriaan de Groot
21bcd560b1
[users] Use API to change weak-checkbox visibility
2019-10-21 17:26:06 +02:00
Adriaan de Groot
eb90757063
[users] Apply coding style (lots of churn)
2019-10-21 17:21:33 +02:00
bill-auger
1513934a57
add checkbox to disable password validations
2019-08-30 08:13:33 -04:00
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.
2019-04-29 06:49:16 -04:00
Arnaud Ferraris
6463e5f83c
[users] Adjust messages to setup mode
...
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2019-04-08 18:02:23 +02:00
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.
2019-02-11 18:18:34 -05:00
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>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
3315df5df1
[modules] Use new convenience logging methods across the board
2018-02-13 11:07:12 +01:00
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.
2018-02-07 17:43:26 +01:00
Adriaan de Groot
1d6dca062c
[users] Make state of 'reuse password for root' available in globals.
2018-01-24 16:19:41 +01:00
Adriaan de Groot
354cb79cb1
[users] sample config and stub function for libpwquality
2018-01-24 14:13:50 +01:00
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
2018-01-24 14:13:50 +01:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
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
2017-09-19 15:57:25 +02:00
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
2017-09-19 15:57:13 +02:00
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
2017-09-19 00:12:44 +02:00
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.
2017-01-12 13:44:11 +01:00
Teo Mrnjavac
701d7d8a62
Be sure to validate user name even if empty.
2016-08-12 12:40:15 +02:00
Teo Mrnjavac
22470ba4af
Disallow next if the root password is not reused or provided.
...
CAL-344 #close
2015-12-30 17:27:02 +01:00
demmm
f267410dbb
different names
2015-12-30 17:27:02 +01:00
demmm
c89bd1db23
implement https://calamares.io/bugs/browse/CAL-341
2015-12-30 17:27:02 +01:00
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.
2015-11-29 11:10:01 +01:00
Teo Mrnjavac
bbd8fe6203
Allow reusing the user password as root password.
2015-10-16 14:26:26 +02:00
Teo Mrnjavac
cb83e22ded
Make sure the FullName is not empty.
2015-10-15 13:24:27 +02:00
Teo Mrnjavac
baa3553db5
Add CalamaresUtils::obscure.
2015-09-25 15:24:59 +02:00
Teo Mrnjavac
4ae55d0108
Allow setting the default for autologin/no autologin.
2015-08-19 12:51:06 +02:00
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.
2015-07-02 11:21:46 +02:00
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.
2015-06-11 04:02:06 +02:00
Gormogon
e2d05cb9f2
Align Pointers
2015-02-25 19:57:19 -05:00
Teo Mrnjavac
8ad507e379
Improve input validation in UsersPage.
...
CAL-190 #close
2015-02-17 20:20:20 +01:00
Teo Mrnjavac
e258f0b5a9
Use onActivate instead of focusInEvent for page focus control.
2014-11-26 18:41:35 +01:00
Teo Mrnjavac
fb37a0bf2f
Fix focus in UsersPage.
2014-11-18 15:57:07 +01:00
Teo Mrnjavac
78de47eb8c
Retranslate Users module.
2014-11-13 17:42:02 +01:00
Rohan Garg
b587a0ff00
Add support to set the hostname
2014-10-21 19:06:27 +02:00
Teo Mrnjavac
ad68ce0187
Make default groups, users group and autologin group configurable.
2014-10-08 15:05:23 +02:00
Teo Mrnjavac
87711c89fc
Use common icons in users viewmodule.
2014-08-26 18:24:51 +02:00
Teo Mrnjavac
0404413b05
Store active user in GlobalStorage as username.
2014-08-26 18:24:51 +02:00