Skip to content

Commit f83cd56

Browse files
author
Matt Wright
committed
Merge pull request pallets-eco#311 from moorereason/develop
Fix small issues in docs
2 parents d2fe7ae + c10ec29 commit f83cd56

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

docs/configuration.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Core
1515
``SECURITY_URL_PREFIX`` Specifies the URL prefix for the
1616
Flask-Security blueprint. Defaults to
1717
``None``.
18-
``SECURITY_FLASH_MESSAGES`` Specifies wether or not to flash
18+
``SECURITY_FLASH_MESSAGES`` Specifies whether or not to flash
1919
messages during security procedures.
2020
Defaults to ``True``.
2121
``SECURITY_PASSWORD_HASH`` Specifies the password hash algorithm to
@@ -69,37 +69,37 @@ URLs and Views
6969
``SECURITY_CONFIRM_ERROR_VIEW`` Specifies the view to redirect to if a
7070
confirmation error occurs. This value can be set
7171
to a URL or an endpoint name. If this value is
72-
``None`` the user is presented the default view
72+
``None``, the user is presented the default view
7373
to resend a confirmation link. Defaults to
7474
``None``.
7575
``SECURITY_POST_REGISTER_VIEW`` Specifies the view to redirect to after a user
7676
successfully registers. This value can be set to
7777
a URL or an endpoint name. If this value is
78-
``None`` the user is redirected to the value of
78+
``None``, the user is redirected to the value of
7979
``SECURITY_POST_LOGIN_VIEW``. Defaults to
8080
``None``.
8181
``SECURITY_POST_CONFIRM_VIEW`` Specifies the view to redirect to after a user
8282
successfully confirms their email. This value
8383
can be set to a URL or an endpoint name. If this
84-
value is ``None`` the user is redirected to the
84+
value is ``None``, the user is redirected to the
8585
value of ``SECURITY_POST_LOGIN_VIEW``. Defaults
8686
to ``None``.
8787
``SECURITY_POST_RESET_VIEW`` Specifies the view to redirect to after a user
8888
successfully resets their password. This value
8989
can be set to a URL or an endpoint name. If this
90-
value is ``None`` the user is redirected to the
90+
value is ``None``, the user is redirected to the
9191
value of ``SECURITY_POST_LOGIN_VIEW``. Defaults
9292
to ``None``.
9393
``SECURITY_POST_CHANGE_VIEW`` Specifies the view to redirect to after a user
9494
successfully changes their password. This value
9595
can be set to a URL or an endpoint name. If this
96-
value is ``None`` the user is redirected to the
96+
value is ``None``, the user is redirected to the
9797
value of ``SECURITY_POST_LOGIN_VIEW``. Defaults
9898
to ``None``.
9999
``SECURITY_UNAUTHORIZED_VIEW`` Specifies the view to redirect to if a user
100100
attempts to access a URL/endpoint that they do
101101
not have permission to access. If this value is
102-
``None`` the user is presented with a default
102+
``None``, the user is presented with a default
103103
HTTP 403 response. Defaults to ``None``.
104104
=============================== ================================================
105105

@@ -144,7 +144,7 @@ Feature Flags
144144
========================= ======================================================
145145
``SECURITY_CONFIRMABLE`` Specifies if users are required to confirm their email
146146
address when registering a new account. If this value
147-
is `True` Flask-Security creates an endpoint to handle
147+
is `True`, Flask-Security creates an endpoint to handle
148148
confirmations and requests to resend confirmation
149149
instructions. The URL for this endpoint is specified
150150
by the ``SECURITY_CONFIRM_URL`` configuration option.
@@ -158,11 +158,11 @@ Feature Flags
158158
specified by the ``SECURITY_RESET_URL`` configuration
159159
option. Defaults to ``False``.
160160
``SECURITY_TRACKABLE`` Specifies if Flask-Security should track basic user
161-
login statistics. If set to ``True`` ensure your
161+
login statistics. If set to ``True``, ensure your
162162
models have the required fields/attribues. Defaults to
163163
``False``
164164
``SECURITY_PASSWORDLESS`` Specifies if Flask-Security should enable the
165-
passwordless login feature. If set to ``True`` users
165+
passwordless login feature. If set to ``True``, users
166166
are not required to enter a password to login but are
167167
sent an email with a login link. This feature is
168168
experimental and should be used with caution. Defaults

docs/customizing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Customizing Views
22
=================
33

44
Flask-Security bootstraps your application with various views for handling its
5-
configured features to get you up and running as quick as possible. However,
5+
configured features to get you up and running as quickly as possible. However,
66
you'll probably want to change the way these views look to be more in line with
77
your application's visual design.
88

@@ -36,7 +36,7 @@ Flask application context processor:
3636
* ``<template_name>_form``: A form object for the view
3737
* ``security``: The Flask-Security extension object
3838

39-
To add more values to the template context you can specify a context processor
39+
To add more values to the template context, you can specify a context processor
4040
for all views or a specific view. For example::
4141

4242
security = Security(app, user_datastore)
@@ -131,7 +131,7 @@ Overriding these templates is simple:
131131

132132
Each template is passed a template context object that includes values for any
133133
links that are required in the email. If you require more values in the
134-
templates you can specify an email context processor with the
134+
templates, you can specify an email context processor with the
135135
``mail_context_processor`` decorator. For example::
136136

137137
security = Security(app, user_datastore)
@@ -146,7 +146,7 @@ Emails with Celery
146146
------------------
147147

148148
Sometimes it makes sense to send emails via a task queue, such as `Celery`_.
149-
To delay the sending of emails you can use the ``@security.send_mail_task``
149+
To delay the sending of emails, you can use the ``@security.send_mail_task``
150150
decorator like so::
151151

152152
# Setup the task

docs/features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ instance, you may assign roles such as `Admin`, `Editor`, `SuperUser`, or a
2424
combination of said roles to a user. Access control is based on the role name
2525
and all roles should be uniquely named. This feature is implemented using the
2626
`Flask-Principal`_ extension. If you'd like to implement more granular access
27-
control you can refer to the Flask-Princpal `documentation on this topic`_.
27+
control, you can refer to the Flask-Principal `documentation on this topic`_.
2828

2929

3030
Password Encryption

docs/models.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Confirmable
3232
^^^^^^^^^^^
3333

3434
If you enable account confirmation by setting your application's
35-
`SECURITY_CONFIRMABLE` configuration value to `True` your `User` model will
35+
`SECURITY_CONFIRMABLE` configuration value to `True`, your `User` model will
3636
require the following additional field:
3737

3838
* ``confirmed_at``
@@ -41,7 +41,7 @@ Trackable
4141
^^^^^^^^^
4242

4343
If you enable user tracking by setting your application's `SECURITY_TRACKABLE`
44-
configuration value to `True` your `User` model will require the following
44+
configuration value to `True`, your `User` model will require the following
4545
additional fields:
4646

4747
* ``last_login_at``

0 commit comments

Comments
 (0)