diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dba044..7868666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/data/structure.sql b/data/structure.sql index 27d9442..0a76341 100644 --- a/data/structure.sql +++ b/data/structure.sql @@ -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 -- diff --git a/src/Model/UserTable.php b/src/Model/UserTable.php index 188f9d1..06c9e08 100644 --- a/src/Model/UserTable.php +++ b/src/Model/UserTable.php @@ -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; diff --git a/view/layout/login.phtml b/view/layout/login.phtml index 0551b1f..044f4ad 100644 --- a/view/layout/login.phtml +++ b/view/layout/login.phtml @@ -60,7 +60,7 @@ use Application\Controller\CoreController;
diff --git a/view/one-place/user/auth/forgot.phtml b/view/one-place/user/auth/forgot.phtml index c0f5295..2a91b5c 100644 --- a/view/one-place/user/auth/forgot.phtml +++ b/view/one-place/user/auth/forgot.phtml @@ -1,4 +1,5 @@

Forgot Password

@@ -19,6 +20,12 @@ + +
+
+
+ +