def confirm_account(self, token):
        s = Serializer(current_app.config['SECRET_KEY'])
        try:
            data = s.loads(token)
        except (BadSignature, SignatureExpired):
            return False
        if data.get('confirm') != self.id:
            return False
        self.confirmed = True
        db.session.add(self)
        db.session.commit()
        return True
Get a nick, in parallel to `get_attribute`.
dataset/ETHPy150Open hack4impact/flask-base/app/models/user.py/User.confirm_account--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/typeclasses/managers.py/TypedObjectManager.get_nick