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,18 +10,13 @@
{{#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>
{{#if needUpdate}}
<div id="formmessage">{{l10n "Please run the <a href=\"{0}\">Update wizard</a> to adjust your database." updateWizard}}</div>
<br/>
{{else}}
{{#if needUpdate}}
<div id="formmessage">{{l10n "Please run the <a href=\"{0}\">Update wizard</a> to adjust your database." updateWizard}}</div>
{{#if newFeatures}}
<div><div id="formmessage">{{l10n "Congratulations! You now have Mibew Messenger {1} installed. Turn on more features on the <a href=\"{0}\">Optional services</a> page." featuresPage mibewVersion}}</div></div>
<br/>
{{else}}
{{#if newFeatures}}
<div><div id="formmessage">{{l10n "Congratulations! You now have Mibew Messenger {1} installed. Turn on more features on the <a href=\"{0}\">Optional services</a> page." featuresPage mibewVersion}}</div></div>
<br/>
{{/if}}
{{/if}}
{{/if}}

View File

@ -13,13 +13,8 @@
{{> _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 stored}}
<div id="formmessage">{{l10n "Changes saved"}}</div>
{{/if}}
{{#ifAny opid canmodify}}