Skip to content

Commit

Permalink
Fix authentification via deleted apikeys
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed Jun 11, 2017
1 parent 6c160f8 commit bc490c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentification.cpp
Expand Up @@ -103,7 +103,7 @@ bool DeRestPluginPrivate::checkApikeyAuthentification(const ApiRequest &req, Api

for (; i != end; ++i)
{
if (apikey == i->apikey)
if (apikey == i->apikey && i->state == ApiAuth::StateNormal)
{
i->lastUseDate = QDateTime::currentDateTimeUtc();

Expand Down

0 comments on commit bc490c4

Please sign in to comment.