Minor changes

This commit is contained in:
Diego Najar 2018-03-02 19:59:30 +01:00
parent e01603bf73
commit a1a4b3f9f0
1 changed files with 2 additions and 8 deletions

View File

@ -223,7 +223,7 @@ function checkSystem()
} }
// Installation function // Installation function
function install($adminPassword, $email, $timezone) function install($adminPassword, $email='', $timezone)
{ {
global $Language; global $Language;
@ -425,7 +425,7 @@ function install($adminPassword, $email, $timezone)
'role'=>'admin', 'role'=>'admin',
'password'=>$passwordHash, 'password'=>$passwordHash,
'salt'=>$salt, 'salt'=>$salt,
'email'=>$email, 'email'=>'',
'registered'=>$currentDate, 'registered'=>$currentDate,
'tokenRemember'=>'', 'tokenRemember'=>'',
'tokenAuth'=>$tokenAuth, 'tokenAuth'=>$tokenAuth,
@ -648,12 +648,6 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
<input name="password" id="jspassword" type="password" class="uk-width-1-1 uk-form-large" value="<?php echo isset($_POST['password'])?$_POST['password']:'' ?>" placeholder="<?php echo $Language->get('Password') ?>"> <input name="password" id="jspassword" type="password" class="uk-width-1-1 uk-form-large" value="<?php echo isset($_POST['password'])?$_POST['password']:'' ?>" placeholder="<?php echo $Language->get('Password') ?>">
</div> </div>
<!--
<div class="uk-form-row">
<input name="email" id="jsemail" type="text" class="uk-width-1-1 uk-form-large" placeholder="<?php echo $Language->get('Email') ?>" autocomplete="off" maxlength="100">
</div>
-->
<div class="uk-form-row"> <div class="uk-form-row">
<button type="submit" class="uk-width-1-1 uk-button uk-button-primary uk-button-large"><?php $Language->p('Install') ?></button> <button type="submit" class="uk-width-1-1 uk-button uk-button-primary uk-button-large"><?php $Language->p('Install') ?></button>
</div> </div>