'Return whether password is expired or not.'

@property
def password_is_expired(self):

    if (self.password_expires_at and (not self._password_expiry_exempt())):
        return (datetime.datetime.utcnow() >= self.password_expires_at)
    return False
