[epiphany] sync: Remove the email regex test
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] sync: Remove the email regex test
- Date: Thu, 13 Oct 2016 22:15:48 +0000 (UTC)
commit 2da619d5207c287972f9c8739cf13ad36ae9b28d
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Fri Oct 14 01:14:22 2016 +0300
sync: Remove the email regex test
src/sync/ephy-sync-service.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/sync/ephy-sync-service.c b/src/sync/ephy-sync-service.c
index a26e144..6b018a0 100644
--- a/src/sync/ephy-sync-service.c
+++ b/src/sync/ephy-sync-service.c
@@ -37,7 +37,6 @@
#define MOZILLA_TOKEN_SERVER_URL "https://token.services.mozilla.com/1.0/sync/1.5"
#define MOZILLA_FXA_SERVER_URL "https://api.accounts.firefox.com/v1/"
#define EPHY_BOOKMARKS_COLLECTION "ephy-bookmarks"
-#define EMAIL_REGEX "^[a-zA-Z0-9_]([a-zA-Z0-9._]+[a-zA-Z0-9_])?@[a-z0-9.-]+$"
#define SYNC_FREQUENCY (15 * 60) /* seconds */
struct _EphySyncService {
@@ -622,12 +621,8 @@ ephy_sync_service_init (EphySyncService *self)
email = g_settings_get_string (EPHY_SETTINGS_MAIN, EPHY_PREFS_SYNC_USER);
if (g_strcmp0 (email, "") != 0) {
- if (g_regex_match_simple (EMAIL_REGEX, email, 0, 0) == TRUE) {
- ephy_sync_service_set_user_email (self, email);
- ephy_sync_secret_load_tokens (self);
- } else {
- g_warning ("Invalid email: %s", email);
- }
+ ephy_sync_service_set_user_email (self, email);
+ ephy_sync_secret_load_tokens (self);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]