Skip to content

Commit

Permalink
Merge pull request #118 from MaxPleaner/patch-1
Browse files Browse the repository at this point in the history
Fix syntax in post_login callback registration example
  • Loading branch information
trenpixster authored Jan 31, 2017
2 parents fdc16a7 + 8c36f5d commit 2a76f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ And add it to the configuration:

config :addict,
(...),
post_login: {MyApp.PostLoginAction, :log}
post_login: &(MyApp.PostLoginAction.log/3)
```

If you want to take different flows according to the success criteria of the action, you can pattern match the arguments:
Expand Down Expand Up @@ -161,4 +161,4 @@ After the password reset email is sent, the reset token will expire in 1 day (86
config :addict,
(...),
password_reset_token_time_to_expiry: 120
```
```

0 comments on commit 2a76f82

Please sign in to comment.