Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from dannyclark/develop

update a typo and a few out-of-date blueprint references
  • Loading branch information...
commit 25fad8b251373e1e654c12063fa3bce0fd7a48ac 2 parents 64f60ba + 1306793
@mattupstate authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 docs/index.rst
View
12 docs/index.rst
@@ -111,7 +111,7 @@ to configure your application with your provider's application values
**Google**::
- SOCIAL_GOOGLE = {
+ app.config['SOCIAL_GOOGLE'] = {
'consumer_key': 'xxxx',
'consumer_secret': 'xxxx'
}
@@ -171,11 +171,11 @@ with each service provider. If a connection is not found, the value will be
{% macro show_provider_button(provider_id, display_name, conn) %}
{% if conn %}
- <form action="{{ url_for('flask_social.remove_connection', provider_id=conn.provider_id, provider_user_id=conn.provider_user_id) }}" method="DELETE">
+ <form action="{{ url_for('social.remove_connection', provider_id=conn.provider_id, provider_user_id=conn.provider_user_id) }}" method="DELETE">
<input type="submit" value="Disconnect {{ display_name }}" />
</form>
{% else %}
- <form action="{{ url_for('flask_social.connect', provider_id=provider_id) }}" method="POST">
+ <form action="{{ url_for('social.connect', provider_id=provider_id) }}" method="POST">
<input type="submit" value="Connect {{ display_name }}" />
</form>
{% endif %}
@@ -200,7 +200,7 @@ Logging In
If a user has a connection established to a service provider then it is possible
for them to login via the provider. A login form would look like the following::
- <form action="{{ url_for('flask_security.authenticate') }}" method="POST" name="login_form">
+ <form action="{{ url_for('security.authenticate') }}" method="POST" name="login_form">
{{ form.hidden_tag() }}
{{ form.username.label }} {{ form.username }}<br/>
{{ form.password.label }} {{ form.password }}<br/>
@@ -209,7 +209,7 @@ for them to login via the provider. A login form would look like the following::
</form>
{% macro social_login(provider_id, display_name) %}
- <form action="{{ url_for('flask_social.login', provider_id=provider_id) }}" method="POST">
+ <form action="{{ url_for('social.login', provider_id=provider_id) }}" method="POST">
<input type="submit" value="Login with {{ display_name }}" />
</form>
{% endmacro %}
@@ -321,4 +321,4 @@ Changelog
.. toctree::
:maxdepth: 2
- changelog
+ changelog
Please sign in to comment.
Something went wrong with that request. Please try again.