diff options
| author | 2014-01-01 13:48:32 +0100 | |
|---|---|---|
| committer | 2014-01-01 13:48:32 +0100 | |
| commit | 50c41d9bb2b1766feac984685bb2a954ab4799f3 (patch) | |
| tree | df15fd8557896511563928fe414073baf5c27751 /app/views/configure/users.phtml | |
| parent | 8beb15460a3c55c37264fdf414e7dcf9ff4e2a62 (diff) | |
Détails multi-utilisateur
https://github.com/marienfressinaud/FreshRSS/issues/126
Diffstat (limited to 'app/views/configure/users.phtml')
| -rw-r--r-- | app/views/configure/users.phtml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtml index 223f81e8d..d40a3ad5b 100644 --- a/app/views/configure/users.phtml +++ b/app/views/configure/users.phtml @@ -3,7 +3,7 @@ <div class="post"> <a href="<?php echo _url('index', 'index'); ?>"><?php echo Minz_Translate::t('back_to_rss_feeds'); ?></a> - <form method="post" action="<?php echo _url('users', 'id'); ?>"> + <form method="post" action="<?php echo _url('users', 'auth'); ?>"> <legend><?php echo Minz_Translate::t('login_configuration'); ?></legend> <div class="form-group"> @@ -34,20 +34,19 @@ </div> </div> <?php } ?> - </form> <?php if (Minz_Configuration::isAdmin(Minz_Session::param('currentUser', '_'))) { ?> - <form method="post" action="<?php echo _url('users', 'auth'); ?>"> <legend><?php echo Minz_Translate::t('auth_type'); ?></legend> <div class="form-group"> <label class="group-name" for="auth_type"><?php echo Minz_Translate::t('auth_type'); ?></label> <div class="group-controls"> - <select id="auth_type" name="auth_type"> + <select id="auth_type" name="auth_type" required="required"> + <option value=""></option> <option value="none"<?php echo Minz_Configuration::authType() === 'none' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t('auth_none'); ?></option> <option value="http_auth"<?php echo Minz_Configuration::authType() === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>>HTTP Auth</option> - <option value="persona"<?php echo Minz_Configuration::authType() === 'persona' ? ' selected="selected"' : ''; ?>>Mozilla Persona</option> + <option value="persona"<?php echo Minz_Configuration::authType() === 'persona' ? ' selected="selected"' : '', $this->conf->mail_login == '' ? ' disabled="disabled"' : ''; ?>>Mozilla Persona</option> </select> <code>$_SERVER['REMOTE_USER'] = `<?php echo httpAuthUser(); ?>`</code> </div> |
