forked from berserker/microblog
Fix suspicious sign-in mails never being sent (#18599)
* Add tests * Fix suspicious sign-in mails never being sentmain
parent
27f41768e8
commit
327eed0076
3 changed files with 39 additions and 6 deletions
@ -1,8 +1,8 @@ |
|||||||
Fabricator(:login_activity) do |
Fabricator(:login_activity) do |
||||||
user |
user |
||||||
strategy 'password' |
authentication_method 'password' |
||||||
success true |
success true |
||||||
failure_reason nil |
failure_reason nil |
||||||
ip { Faker::Internet.ip_v4_address } |
ip { Faker::Internet.ip_v4_address } |
||||||
user_agent { Faker::Internet.user_agent } |
user_agent { Faker::Internet.user_agent } |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue