Skip to content

Commit

Permalink
Merge branch 'release/2.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Jan 24, 2017
2 parents 71db368 + 3e3d842 commit 2e3919b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# v2.2.1
## 01/24/2017

1. [](#bugfix)
* Fix login form/status templates displaying user as logged in even if he's not authenticated
* Use email validation instead of text validation in the forgot password form [https://github.com/gantry/gantry5/issues/1813](https://github.com/gantry/gantry5/issues/1813)

# v2.2.0
## 12/13/2016

Expand All @@ -11,7 +18,7 @@
* Added support for hiding `Remember me` checkbox and and `Forgot` button (for Offline functionality)
1. [](#bugfix)
* Fixed redirect issue in admin plugin

# v2.2.0-rc.4
## 12/04/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Login
version: 2.2.0
version: 2.2.1
description: Enables user authentication and login screen.
icon: sign-in
author:
Expand Down
2 changes: 1 addition & 1 deletion pages/forgot.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ form:

fields:
- name: email
type: text
type: email
label: PLUGIN_LOGIN.EMAIL
autofocus: true
validate:
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/login-form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% if page.template == 'login' or show_login_form %}

{% if grav.user.username %}
{% if grav.user.authenticated %}
<h4>{{ 'PLUGIN_LOGIN.WELCOME'|t }} <strong>{{ grav.user.fullname ?: grav.user.username }}</strong></h4>
<hr>
<a class="button logout" href="{{ uri.addNonce(base_url_relative ~ uri.path ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce') }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/login-status.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<span class="login-status">
{% if grav.user.username %}
{% if grav.user.authenticated %}
{{ 'PLUGIN_LOGIN.WELCOME'|t }} <strong>{{ grav.user.fullname ?: grav.user.username }}</strong>, <a class="logout" href="{{ uri.addNonce((base_url_relative ~ uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce') }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a>
{% endif %}
</span>

0 comments on commit 2e3919b

Please sign in to comment.