forked from trenpixster/addict
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use custom validation on example app
Closes trenpixster#70
- Loading branch information
1 parent
d731001
commit 17134fd
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ config :phoenix, :generators, | |
|
||
config :addict, | ||
secret_key: "2432622431322479506177654c79303442354a5a4b784f592e444f332e", | ||
extra_validation: fn ({valid, errors}, user_params) -> {valid, errors} end, # define extra validation here | ||
extra_validation: &ExampleApp.User.validate/2, # define extra validation here | ||
user_schema: ExampleApp.User, | ||
repo: ExampleApp.Repo, | ||
from_email: "[email protected]", # CHANGE THIS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters