mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Remove message about empty password and first login
This commit is contained in:
parent
217ccb9e09
commit
6ae53d90af
@ -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,
|
||||
|
@ -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']);
|
||||
|
@ -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}}
|
||||
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user