Commit 03a2995e15e69ad1ec73b1c0ecefaf3d2551b0da
1 parent
8b7e404b
Exists in
master
and in
4 other branches
Fix #1009 Replace all special characters in user's identity
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/roles/account.rb
spec/models/user_spec.rb
... | ... | @@ -22,6 +22,11 @@ describe User do |
22 | 22 | user.identifier.should == "test_mail_com" |
23 | 23 | end |
24 | 24 | |
25 | + it "should return identifier without + sign" do | |
26 | + user = User.new(:email => "test+foo@mail.com") | |
27 | + user.identifier.should == "test_foo_mail_com" | |
28 | + end | |
29 | + | |
25 | 30 | it "should execute callback when force_random_password specified" do |
26 | 31 | user = User.new(:email => "test@mail.com", :force_random_password => true) |
27 | 32 | user.should_receive(:generate_password) | ... | ... |