From 0cd9dcae5a8b929f50a37423bb2771bdb0068f7c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 28 Nov 2014 10:50:59 +0100 Subject: Allow UCCS logins that are not email addresses (but usernames). --- src/user-list.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user-list.vala') diff --git a/src/user-list.vala b/src/user-list.vala index 86b71d2..7ebc41b 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -421,7 +421,7 @@ public class UserList : GreeterList /* Check email address is valid * Using the html5 definition of a valid e-mail address * http://www.w3.org/TR/html5/states-of-the-type-attribute.html#valid-e-mail-address */ - var re = new Regex ("[a-zA-Z0-9.!#$%&'\\*\\+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*"); + var re = new Regex ("[a-zA-Z0-9.!#$%&'\\*\\+/=?^_`{|}~-]+(|@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)"); MatchInfo info; email_valid = re.match_all (email, 0, out info); email_valid = email_valid && info.get_match_count () > 0 && info.fetch (0) == email; -- cgit v1.2.3