Merge pull request #1163 from tomykaira/bug_1009

Fix #1009 Replace all special characters in user's identity
This commit is contained in:
Dmitriy Zaporozhets 2012-07-28 07:46:40 -07:00
commit e1344a08f0
2 changed files with 6 additions and 1 deletions

View file

@ -1,6 +1,6 @@
module Account
def identifier
email.gsub /[@.]/, "_"
email.gsub /[^[:alnum:]]/, "_"
end
def is_admin?