Remove message about empty password and first login

This commit is contained in:
Dmitriy Simushev 2014-07-11 11:56:48 +00:00
parent 217ccb9e09
commit 6ae53d90af
4 changed files with 6 additions and 18 deletions

View File

@ -53,7 +53,6 @@ class HomeController extends AbstractController
'version' => MIBEW_VERSION,
'localeLinks' => get_locale_links(),
'needUpdate' => Settings::get('dbversion') != DB_VERSION,
'needChangePassword' => check_password_hash($operator['vclogin'], '', $operator['vcpassword']),
'profilePage' => $base_url . '/operator/operator/' . $operator['operatorid'] . '/edit',
'updateWizard' => $base_url . '/install/',
'newFeatures' => Settings::get('featuresversion') != FEATURES_VERSION,

View File

@ -93,7 +93,6 @@ class ProfileController extends AbstractController
$page['stored'] = $request->query->has('stored');
$page['canmodify'] = $can_modify ? '1' : '';
$page['canchangelogin'] = is_capable(CAN_ADMINISTRATE, $operator);
$page['needChangePassword'] = check_password_hash($operator['vclogin'], '', $operator['vcpassword']);
$page['title'] = getlocal('Operator details');
$page['menuid'] = ($op_id == $operator['operatorid']) ? 'profile' : 'operators';
$page['requirePassword'] = (!$op_id || $page['needChangePassword']);

View File

@ -10,10 +10,6 @@
{{#override "content"}}
<br/>
{{#if needChangePassword}}
<div id="formmessage">{{l10n "This is your first time logging in and your password is blank. For security reasons you have to change it."}} {{l10n "Visit your <a href=\"{0}\">Profile Page</a>." profilePage}}</div>
<br/>
{{else}}
{{#if needUpdate}}
<div id="formmessage">{{l10n "Please run the <a href=\"{0}\">Update wizard</a> to adjust your database." updateWizard}}</div>
<br/>
@ -23,7 +19,6 @@
<br/>
{{/if}}
{{/if}}
{{/if}}
<div id="dashboard">
<div class="dashitem">

View File

@ -13,14 +13,9 @@
{{> _errors}}
{{#if needChangePassword}}
<div id="formmessage">{{l10n "This is your first time logging in and your password is blank. For security reasons you have to change it."}}</div>
<br/>
{{else}}
{{#if stored}}
<div id="formmessage">{{l10n "Changes saved"}}</div>
{{/if}}
{{/if}}
{{#ifAny opid canmodify}}
<form name="agentForm" method="post" action="{{formaction}}">