Routing predicate definitions.
Bases: pyramid.config.predicates.CheckCSRFTokenPredicate
Run csrf check dependant on configuration.
Note
Raises HTTPUnauthorized exception if check fails.
| Raises: | pyramid.httpexceptions.HTTPUnauthorized |
|---|---|
| Returns: | True if check succeeds or turned off. |
| Return type: | bool |
Check whether change email hash is correct.
| Parameters: |
|
|---|---|
| Returns: | whether change email hash exists or not |
| Return type: | bool |
Check whether reset hash is correct.
| Parameters: |
|
|---|---|
| Returns: | whether reset hash exists or not |
| Return type: | bool |