README.md in unidom-visitor-0.6 vs README.md in unidom-visitor-0.7
- old
+ new
@@ -36,5 +36,12 @@
if Unidom::Visitor::User.valid_at.alive.first.passwords.valid_at.alive.first.merge(Unidom::Visitor::Authenticating.valid_at.alive).first.matched? 'password'
# Sign in
end
```
+
+### Authenticating model
+```ruby
+user = Unidom::Visitor::User.create! opened_at: Time.now
+password = Unidom::Visitor::Password.create! clear_text: 'password', opened_at: Time.now
+Unidom::Visitor::Authenticating.authenticate! user, password
+```