diff options
author | tomykaira <tomykaira@gmail.com> | 2012-07-28 16:59:30 +0400 |
---|---|---|
committer | tomykaira <tomykaira@gmail.com> | 2012-07-28 17:05:25 +0400 |
commit | 03a2995e15e69ad1ec73b1c0ecefaf3d2551b0da (patch) | |
tree | b837194220784cabd84a88f92b108a529a5e131b /app/roles | |
parent | 8b7e404b5b6944e9c92cc270b2e5d0005781d49d (diff) |
Fix #1009 Replace all special characters in user's identity
Diffstat (limited to 'app/roles')
-rw-r--r-- | app/roles/account.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/roles/account.rb b/app/roles/account.rb index e86dc5939e0..e77cbe6cb45 100644 --- a/app/roles/account.rb +++ b/app/roles/account.rb @@ -1,6 +1,6 @@ module Account def identifier - email.gsub /[@.]/, "_" + email.gsub /[^[:alnum:]]/, "_" end def is_admin? |