# controller\_signup\_confirm

Source: https://zotonic.com/docs/1896/controller_signup_confirm

URI: https://zotonic.com/id/1896

Language: en



Controller which displays the confirmation page where the user can confirm his signup.

The template used is `signup_confirm.tpl`. It extends `base.tpl` and posts the verification key back to this controller using a `{confirm, ...}` postback.

The key is created for an email identity by `mod_signup` when an account needs identity verification. On a valid key this controller publishes the user resource, marks the account and identity as verified, emits `#signup_confirm{id=UserId}`, logs the user on, and redirects to the first `#signup_confirm_redirect{}` result, the destination saved at signup, or the user's page (falling back to home). The destination and verification key are consumed together; resending a verification email preserves the destination.

Handled events
--------------

- `{confirm, [{key, Key}]}` verifies the email identity associated with `Key`, publishes the account, logs the user on, and redirects after confirmation.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1896?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1896?language=en>)
