Commit 599ec5b6 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Fix deactivated user condition

parent 9c20412c
......@@ -357,7 +357,7 @@ class ActivationBackend(object):
if not ok:
return ActivationResult(self.Result.ERROR, msg)
was_deactivated = bool(user.deactivated_at)
was_deactivated = not user.is_active
user.is_active = True
user.deactivated_reason = None
user.deactivated_at = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment