From 544d518d11b6fac9cd0c89e6ed6ca272aea2fbaf Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 17 Sep 2014 07:25:07 -0700 Subject: [PATCH] User.pm: avoid assigning UUIDs to reserved users If a user does not have a valid email address then do not automatically assign a UUID for that user (if it does not already have one) when loading the user. --- Girocco/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/User.pm b/Girocco/User.pm index 1e312bf..038f169 100644 --- a/Girocco/User.pm +++ b/Girocco/User.pm @@ -197,7 +197,7 @@ sub load { ($self->{email}, $self->{uuid}, $self->{creationtime}) = split ',', $email_uuid_etc; close F; - $self->{uuid} or $self->_passwd_update; + $self->{uuid} or !valid_email($self->{email}) or $self->_passwd_update; return $self; } close F; -- 2.11.4.GIT