[FIX] bugs login; Wefra is a mix of Wefra and Wodoo which creates a mess; A lot of fixes to come; I am on it (DD)
This commit is contained in:
parent
6edd9145ad
commit
d0f514b9af
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if(isset($_POST['formLoginButtonSubmit'])){
|
||||
$user = new ClassUser();
|
||||
$oUser = new ClassUser();
|
||||
$user = $oUser->login($_POST);
|
||||
|
||||
if(isset($user['email'])){
|
||||
@ -14,6 +14,7 @@ if(isset($_POST['formLoginButtonSubmit'])){
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(isset($_POST['submit_change_password'])){
|
||||
// Open connection with Globsi Backend
|
||||
$userPassword = $oUser->changePassword($_SESSION['user']['id'], $_POST);
|
||||
|
@ -1,11 +1,12 @@
|
||||
<?php if(isset($user)) { ?>
|
||||
<?php
|
||||
if(isset($_SESSION['user'])) { ?>
|
||||
<div class="container">
|
||||
<div class="section">
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<div class="card z-depth-5">
|
||||
<div class="card-content">
|
||||
<p><?php echo "Welcome ".$user[0]['display_name']; ?></p>
|
||||
<p><?php echo "Welcome ".$_SESSION['user']['email']; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -19,13 +20,13 @@
|
||||
<div class="col s12">
|
||||
<div class="card z-depth-5">
|
||||
<div class="card-content">
|
||||
<p>Welcome in Wodoo. Create a DB named jmdn_wodoo.<br>
|
||||
Execute the file <?php echo $oConf->getURLRoot("__private/install/install-v1.0.0.sql"); ?> in your database.<br>
|
||||
Execute the PHP script <?php echo $oConf->getURLRoot("__private/install/install.php"); ?> to get things done.</p>
|
||||
<p>"Welcome to the public home page</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user