Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(TB MFA) make http loginFromPost work, cleanup in model
Browse files Browse the repository at this point in the history
Change-Id: Ic4d2401d23977491e2fe4f8d9fc644e8d81a6e87
Reviewed-on: http://gerrit.tine20.com/customers/19371
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
Tested-by: Paul Mehrer <p.mehrer@metaways.de>
  • Loading branch information
paulmhh committed Mar 16, 2021
1 parent 9579784 commit c8c9aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tine20/Tinebase/Model/MFA/PinUserConfig.php
Expand Up @@ -86,9 +86,4 @@ public function toFEArray(): array
{
return $this->toArray();
}

public function getMessages()
{
// TODO: Implement getMessages() method.
}
}
3 changes: 3 additions & 0 deletions tine20/Tinebase/Server/Json.php
Expand Up @@ -543,6 +543,9 @@ protected function _checkJsonKey($method, $jsonKey)

$request = Tinebase_Core::getRequest();
if (!self::userIsRegistered()) {
if (Tinebase_Core::isRegistered(Tinebase_Core::USER) && is_object(Tinebase_Core::getUser())) {
self::_checkAreaLock(Tinebase_Model_AreaLockConfig::AREA_LOGIN);
}
Tinebase_Core::getLogger()->INFO(__METHOD__ . '::' . __LINE__ .
' Attempt to request a privileged Json-API method (' . $method . ') without authorisation from "' .
$request->getRemoteAddress() . '". (session timeout?)');
Expand Down

0 comments on commit c8c9aa8

Please sign in to comment.