Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	composer.json
#	src/Controller/AuthController.php
#	src/Model/User.php
#	src/Module.php
  • Loading branch information
Praesidiarius committed Apr 19, 2021
2 parents f4ba04b + ee85602 commit e06b552
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to oneplace-event will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.28] -

### Added

## [1.0.27] - 2021-04-01

### Fixed
Expand Down
11 changes: 11 additions & 0 deletions data/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ ALTER TABLE `user_registration`
ALTER TABLE `user_registration`
MODIFY `Registration_ID` int(11) NOT NULL AUTO_INCREMENT;

CREATE TABLE `user_session` (
`user_idfs` int(11) NOT NULL,
`ipaddress` varchar(30) NOT NULL,
`browser` text NOT NULL,
`date_created` datetime NOT NULL,
`date_last_login` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `user_session`
ADD PRIMARY KEY (`user_idfs`);

--
-- Save
--
Expand Down
6 changes: 6 additions & 0 deletions src/Model/UserTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ public function saveSingle(User $user)
if(isset($user->contact_idfs)) {
$data['contact_idfs'] = $user->contact_idfs;
}
if(isset($user->ref_user_idfs)) {
$data['ref_user_idfs'] = $user->ref_user_idfs;
}
if(isset($user->telegram_chatid)) {
$data['telegram_chatid'] = $user->telegram_chatid;
}

$iCreatorID = (isset(CoreController::$oSession->oUser)) ? CoreController::$oSession->oUser->getID() : 1;

Expand Down
2 changes: 1 addition & 1 deletion view/layout/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use Application\Controller\CoreController;
<hr>
<footer>
<p>&copy; <?= date('Y') ?>
<a href="<?=CoreController::$aGlobalSettings['app-url']?>/impressum" target="_blank">
<a href="<?=CoreController::$aGlobalSettings['app-url']?>" target="_blank">
<?=CoreController::$aGlobalSettings['app-copyright']?>
</a>. <?=$this->translate('All rights reserved')?>.</p>
</footer>
Expand Down
7 changes: 7 additions & 0 deletions view/one-place/user/auth/forgot.phtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
use Application\Controller\CoreController;
?>
<form action="" method="POST">
<h2>Forgot Password</h2>
Expand All @@ -19,6 +20,12 @@
<input type="text" id="plc_login_user" name="plc_login_user" value="" class="form-control" />
<label for="plc_login_user"><?=$this->translate('Username or E-Mail')?></label>
</div>
<?php if(isset(CoreController::$aGlobalSettings['recaptcha-forgot-sitekey'])) { ?>
<div class="md-form">
<div class="g-recaptcha" data-sitekey="<?=CoreController::$aGlobalSettings['recaptcha-forgot-sitekey']?>"></div>
</div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<?php } ?>
<div class="md-form">
<button type="submit" value="Login" class="btn-floating btn btn-dark">
<?=$this->translate('Get Password Reset Link')?>
Expand Down

0 comments on commit e06b552

Please sign in to comment.