mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add AuthenticationServiceProvider
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<h1 id="namePhr">{{home_title}}</h1>
|
||||
</div>
|
||||
|
||||
{% if not app.isAuthenticated() %}
|
||||
{% if not app['authentication'].isAuthenticated() %}
|
||||
<div id="content-box" class="span6 offset3">
|
||||
<form id="login-form" class="form-vertical" method="post">
|
||||
{% for key,value in auth.getParams %}
|
||||
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
{% set username = '<b>' ~ app['authentication'].getUser().get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
|
||||
{% if user is not none %}
|
||||
{% set username = '<b>' ~ app['phraseanet.user'].get_display_name() ~ '</b>' %}
|
||||
{% set username = '<b>' ~ app['authentication'].getUser().get_display_name() ~ '</b>' %}
|
||||
<div id="hello-box" class="span6 offset3">
|
||||
<p class="login_hello">
|
||||
{% trans %}
|
||||
|
Reference in New Issue
Block a user