Commit graph

262 commits

Author SHA1 Message Date
Chris Cummins
11382d241a user-accounts: Disallow whitespace-only names
This prevents users from creating an account with a full name consisting
solely of whitespace, e.g., space and tab characters. Having "invisible"
real names can cause confusion on the login screen.

https://bugzilla.gnome.org/show_bug.cgi?id=699940
2013-05-17 16:34:13 +02:00
Chris Cummins
6d11023f33 user-accounts: Validate real name on change
This prevents users from setting invalid real names for accounts by
editing the name from the user panel. This applies the same check as is
done when first adding the account.

https://bugzilla.gnome.org/show_bug.cgi?id=699940
2013-05-17 16:24:19 +02:00
Thomas Wood
17be761a41 user-accounts: ellipsize long user names in the password dialog
Ellipsize long user names in the password dialog by using the same
properties as the main panel.

https://bugzilla.gnome.org/show_bug.cgi?id=698965
2013-05-10 12:00:37 +01:00
Stef Walter
c5b24e57f2 user-accounts: When enterprise account disabled, join as admin
When an enterprise login user account is disabled, or needs to have
its password change, just prompt for the administrator to do the join
to the domain. This is exactly the same fall through as if the user
does not have permission to join a machine to a domain.

https://bugzilla.gnome.org/show_bug.cgi?id=699293
2013-05-06 14:31:49 +02:00
Ondrej Holy
b4b0ae8d89 user-accounts: Ellipsize long names
https://bugzilla.gnome.org/show_bug.cgi?id=693326
2013-04-26 17:28:36 +02:00
Stef Walter
5dfffc1593 user-accounts: Handle "incorrect password" krb5 code
Oddly enough this is the standard krb5 error code for an
incorrect password. Which error code is returned depends
on how the protocol is being used. FreeIPA returns this one.

https://bugzilla.gnome.org/show_bug.cgi?id=698266
2013-04-24 08:59:50 +02:00
Stef Walter
a3d7891670 user-accounts: Make Enter work in the 'Add Account' dialogue
Fix various controls where pressing enter did nothing.

https://bugzilla.gnome.org/show_bug.cgi?id=698262
2013-04-24 08:59:50 +02:00
Stef Walter
e84bb4983c user-accounts: Reacquire permissions before adding account
If necessary, reacquire permissions before starting to add an
account.

https://bugzilla.gnome.org/show_bug.cgi?id=698276
2013-04-24 08:59:50 +02:00
Bastien Nocera
3ef22f4394 user-accounts: Fix fingerprint dialogue causing a crash
Loading the GtkBuilder file used the wrong GResource path.

https://bugzilla.gnome.org/show_bug.cgi?id=698198
2013-04-23 16:00:26 +02:00
Lionel Landwerlin
07bdf84dab user-accounts: fix wrong user data pointer usage
https://bugzilla.gnome.org/show_bug.cgi?id=698279
2013-04-22 16:41:32 +01:00
Stef Walter
264c2fc693 user-accounts: Fix assertion from freeing NULL array
https://bugzilla.gnome.org/show_bug.cgi?id=698177
2013-04-17 10:02:42 +02:00
Kalev Lember
8b1c83e1f9 user-accounts: Add missing semicolons to desktop files
https://bugzilla.gnome.org/show_bug.cgi?id=696806
2013-04-16 11:15:14 +02:00
Stef Walter
909d88d080 user-accounts: Tell realmd not to setup system management
The Enterprise Login feature is meant to setup a individiual
domain accounts for use with GNOME, and not manage the system.
realmd now configures more than just logins, so tell realmd
to hold back and not configure a system managed by the domain.

https://bugzilla.gnome.org/show_bug.cgi?id=697910
2013-04-15 16:02:46 +02:00
Ondrej Holy
254116f0c5 user-accounts: Don't unref users
libaccountsservice doesn't ref them before giving them to us,
so we shouldn't unref them when we're done with them.

https://bugzilla.gnome.org/show_bug.cgi?id=691891
2013-03-14 17:57:27 -04:00
Bastien Nocera
ae108c45f3 user-accounts: Stop crash when changing the password
Pass the correct user data to the passwd_change_password() callback,
so we don't try to manipulate NULL pointers in place of the password
dialogue.

https://bugzilla.redhat.com/show_bug.cgi?id=874725
2013-03-13 09:25:31 +01:00
Jiro Matsuzawa
7f1809e8c9 user-accounts: Make login history dialog title translatable
https://bugzilla.gnome.org/show_bug.cgi?id=695202
2013-03-05 13:37:02 +01:00
Ángel Guzmán Maeso
68dd98ba60 user-accounts: Fix deprecated function in um-utils.c
From gtk_icon_info_free() to g_object_unref()

https://bugzilla.gnome.org/show_bug.cgi?id=694362
2013-02-21 17:08:25 +01:00
Bastien Nocera
726332c14f user-accounts: Remove password hints feature from UI
As those are not currently used in GDM.

https://bugzilla.gnome.org/show_bug.cgi?id=643445
2013-02-21 15:12:24 +01:00
Bastien Nocera
fd04dbef8c user-accounts: GtkBuilder files now require GTK+ 3.8 2013-02-20 18:02:57 +01:00
Bastien Nocera
75fdd13a74 user-accounts: Avoid a warning on startup
As a user was not set on the password dialog yet. Also make
sure that we do not try to update the password strength label
before anyone has entered anything in the dialogue itself.
2013-02-20 18:02:53 +01:00
Bastien Nocera
fa022622d2 user-accounts: Fix possible free of unowned string
And the subsequent crasher.
2013-02-20 18:02:48 +01:00
Matthias Clasen
8cc06f8413 users: Deal with preloaded users
Now that another panel is using ActUserManager, the one the
user panel is using may already be loaded when it starts up.
It was not dealing with that gracefully.
2013-02-19 12:25:52 +01:00
Matthias Clasen
d37b5fc4c1 user: Adapt to new language chooser 2013-02-19 12:25:52 +01:00
Matthias Clasen
1ecd607bcb Move cc_add_user_language
Move it to cc-common-language.c and rename it
to cc_common_language_add_user_languages
2013-02-19 12:25:51 +01:00
Allan Day
383e89a4dc user-accounts: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
Michael Catanzaro
973d1cac6b user-accounts: Don't reject passwords that pwquality says are ok
Fix for the OK button being insensitive for many "weak" passwords

Also fixes "not good enough" password being accepted

https://bugzilla.gnome.org/show_bug.cgi?id=691907
2013-02-14 10:10:27 +01:00
Matthias Clasen
d5bcf412d0 users: Add accessible labels in history dialog
The previous/next week buttons were being read by orca
as just 'pushbutton', which is not very useful.

https://bugzilla.gnome.org/show_bug.cgi?id=693542
2013-02-12 10:07:02 -05:00
Ondrej Holy
324d1cef8a user-accounts: Add history dialog
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2013-01-09 14:14:19 +01:00
Cosimo Cecchi
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -05:00
Cosimo Cecchi
eb573a72e5 user-accounts: use a GResource for GtkBuilder UI definition and icons
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:23 +01:00
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Matthias Clasen
4bee148691 users: Handle real name being unset
When no real name is available, fall back to the user name.
https://bugzilla.gnome.org/show_bug.cgi?id=691173
2013-01-05 16:54:17 -05:00
Cosimo Cecchi
ce546523a5 user-accounts: don't install SVG icons
We only use the PNGs in the panel. Keep the SVGs under version control,
as they're used to generate the PNGs.

https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-04 20:34:38 +01:00
Cosimo Cecchi
3637447865 user-accounts: remove unused icons
These are not used anywhere, so don't install them and remove them from
version control.

https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-04 20:34:38 +01:00
Ryan Lortie
d46a23a5a2 user-accounts: port to libaccountsservice
This removes a bunch of duplicated code, and also drops
a direct dependency on libsystemd-login.

https://bugzilla.gnome.org/show_bug.cgi?id=671858
2013-01-03 11:39:58 -05:00
Ray Strode
db97299e74 user-panel: add UmPasswordDialogMode enum instead of using numeric literals
The um-password-dialog combobox has a column in its model associated
with what password action to apply. Possible actions are:

- Normal password
- Set password at next login
- No password needed
- Lock account
- Unlock account

These actions are currently represented in the code with harded coded
numeric values (0-4).

This commit cleans up the hard coding to use a symbolic enumeration
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=671858
2013-01-03 11:38:38 -05:00
Jasper St. Pierre
720c0d25cf user-accounts: Fix a few tiny error leaks
https://bugzilla.gnome.org/show_bug.cgi?id=690085
2012-12-12 12:49:48 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Jeremy Bicha
19fae9d966 user-accounts: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2012-12-03 09:12:26 -05:00
Ondrej Holy
691a258232 user-accounts: Add last login field
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2012-12-03 14:55:23 +01:00
Matthias Clasen
b0aecdd987 users: Fix resetting the avatar
This probably broke when the D-Bus code was ported to GDBus, as
passing NULL for a string into a GVariant constructor doesn't work.
Thankfully, passing an empty string has just the same effect.
https://bugzilla.gnome.org/show_bug.cgi?id=673841
2012-11-25 22:51:33 -05:00
Bastien Nocera
9656b4136d user-accounts: Fix comment about SHA-256 usage
As per crypt(3), ID 6 is:
6   | SHA-512 (since glibc 2.7)

Spotted by Florian Mülnner.
2012-11-23 11:56:26 +01:00
Thomas Wood
2e2cfce6e0 user-accounts: remove unused variables from the password dialog
https://bugzilla.gnome.org/show_bug.cgi?id=688401
2012-11-19 13:30:49 +00:00
Thomas Wood
33e360d4a7 user-accounts: show the password by default once generated
Make sure the user can see the newly generated password without having to
activate the show password check box.

https://bugzilla.gnome.org/show_bug.cgi?id=688401
2012-11-19 13:30:49 +00:00
Bastien Nocera
cb8c667962 user-accounts: Rename panel to Users
Online Accounts and User Accounts are very similar names.

https://bugzilla.gnome.org/show_bug.cgi?id=688003
2012-11-09 18:41:36 +01:00
Ondrej Holy
3ce73cb8b2 user-accounts: Use GtkGrid instead GtkTable
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2012-10-22 14:29:11 +02:00
Ondrej Holy
9864297c71 user-accounts: fix wrong sensitivity of the autologin combo
https://bugzilla.gnome.org/show_bug.cgi?id=686383
2012-10-22 14:21:37 +02:00
Bastien Nocera
f6cc4a970a user-accounts: Require logind for session tracking
As is already used in gnome-settings-daemon.
2012-10-22 10:53:06 +02:00
Stef Walter
48ae461991 user-accounts: Don't have domains twice in the drop down
If we discover domains again, don't add them twice to the drop
down and confuse the user. This is especially important if we
receive two realms from realmd for the same domain for use with
different clients (ie: sssd/winbind). We only want to offer the
first choice

https://bugzilla.gnome.org/show_bug.cgi?id=686397
2012-10-19 10:46:53 +02:00
Stef Walter
11b5c87d26 user-accounts: Set timeouts on all realmd interface proxies
Without this, we can get timeout problems during joining a domain.

This is a regression from when we refactored UmRealmManager to
use GDBusObjectManagerClient. Make sure to call
g_dbus_proxy_set_default_timeout() on all realmd interface
proxies whenever they show up.

https://bugzilla.gnome.org/show_bug.cgi?id=686390
2012-10-19 10:26:01 +02:00