cutelyst 4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
authenticationstore.cpp
1/*
2 * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#include "authenticationstore.h"
6
7#include <QVariant>
8
9using namespace Cutelyst;
10
14
18
20{
21 return false;
22}
23
25 const ParamsMultiMap &userinfo) const
26{
27 Q_UNUSED(c)
28 Q_UNUSED(userinfo)
29 return AuthenticationUser();
30}
31
33{
34 return false;
35}
36
38 const ParamsMultiMap &userinfo) const
39{
40 Q_UNUSED(c)
41 Q_UNUSED(userinfo)
42 return AuthenticationUser();
43}
44
46{
47 Q_UNUSED(c)
48 return QVariant::fromValue(user);
49}
50
52{
53 Q_UNUSED(c)
54 return frozenUser.value<AuthenticationUser>();
55}
virtual QVariant forSession(Context *c, const AuthenticationUser &user)
virtual AuthenticationUser fromSession(Context *c, const QVariant &frozenUser)
virtual AuthenticationUser autoCreateUser(Context *c, const ParamsMultiMap &userinfo) const
virtual AuthenticationUser autoUpdateUser(Context *c, const ParamsMultiMap &userinfo) const
Container for user data retrieved from an AuthenticationStore.
The Cutelyst Context.
Definition context.h:42
The Cutelyst namespace holds all public Cutelyst API.
QVariant fromValue(const T &value)
T value() const const