[gnome-initial-setup/shell/4765: 330/362] Sped up UI feedback on password matching errors
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 330/362] Sped up UI feedback on password matching errors
- Date: Thu, 19 Mar 2015 01:48:49 +0000 (UTC)
commit b87889de25205392b14712d76f5be8fb50dc042d
Author: Srdjan Grubor <sgnn7 sgnn7 org>
Date: Wed Feb 4 12:55:02 2015 -0600
Sped up UI feedback on password matching errors
Password strength calculations take a long time (relatively) so doing
them before checking for the match between password and its confirmation
made no sense. Now we validate first if they match, then calculate the
strength.
.../pages/account/gis-account-page.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index 2b9495d..4710229 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -380,14 +380,14 @@ update_password_entries (GisAccountPage *page)
password = gtk_entry_get_text (GTK_ENTRY (password_entry));
username = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (username_combo));
- pw_strength (password, NULL, username, &hint, &long_hint, &strength_level);
- gtk_level_bar_set_value (GTK_LEVEL_BAR (password_strength), strength_level);
-
update_valid_confirm (page);
if (priv->valid_confirm)
clear_password_validation_error (page);
+ pw_strength (password, NULL, username, &hint, &long_hint, &strength_level);
+ gtk_level_bar_set_value (GTK_LEVEL_BAR (password_strength), strength_level);
+
gtk_widget_set_sensitive (confirm_entry, TRUE);
refresh_reason_timeout (page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]