Skip to content

Commit

Permalink
* [FIX] Related #641. Removed non-existing table field while refreshi…
Browse files Browse the repository at this point in the history
…ng an API token. Thanks to @ cbrassel for the feedback.
  • Loading branch information
nuxsmin committed Jun 13, 2017
1 parent 48cb16a commit abebb27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions inc/SP/Mgmt/ApiTokens/ApiToken.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,12 @@ public function refreshToken()
SET authtoken_token = ?,
authtoken_hash = ?,
authtoken_vault = ?,
authtoken_pass = ?,
authtoken_startDate = UNIX_TIMESTAMP()
WHERE authtoken_userId = ? LIMIT 1';

$Data = new QueryData();
$Data->setQuery($query);
$Data->addParam($this->generateToken());
$Data->addParam($token);
$Data->addParam(Hash::hashKey($this->itemData->getAuthtokenHash()));

if ($this->itemData->getAuthtokenActionId() === ActionsInterface::ACTION_ACC_VIEW_PASS) {
Expand Down
2 changes: 1 addition & 1 deletion inc/SP/Util/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public static function getAppInfo($index = null)
*/
public static function getVersion($retBuild = false, $normalized = false)
{
$build = 17060101;
$build = 17061301;
$version = [2, 1, 11];

if ($normalized === true) {
Expand Down

0 comments on commit abebb27

Please sign in to comment.