cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::StoreHtpasswd Class Reference
Inheritance diagram for Cutelyst::StoreHtpasswd:

Public Member Functions

 StoreHtpasswd (const QString &name, QObject *parent=nullptr)
 
void addUser (const ParamsMultiMap &user)
 
virtual AuthenticationUser findUser (Context *c, const ParamsMultiMap &userInfo) final
 
virtual QVariant forSession (Context *c, const AuthenticationUser &user) final
 
virtual AuthenticationUser fromSession (Context *c, const QVariant &frozenUser) final
 
- Public Member Functions inherited from Cutelyst::AuthenticationStore
 AuthenticationStore (QObject *parent=nullptr)
 
virtual AuthenticationUser autoCreateUser (Context *c, const ParamsMultiMap &userinfo) const
 
virtual AuthenticationUser autoUpdateUser (Context *c, const ParamsMultiMap &userinfo) const
 
virtual bool canAutoCreateUser () const
 
virtual bool canAutoUpdateUser () const
 

Detailed Description

Definition at line 13 of file htpasswd.h.

Constructor & Destructor Documentation

◆ StoreHtpasswd()

StoreHtpasswd::StoreHtpasswd ( const QString & name,
QObject * parent = nullptr )
explicit

Constructs a new htpasswd store object with the given parent to represent the file with the specified name.

Definition at line 15 of file htpasswd.cpp.

References Cutelyst::AuthenticationStore::AuthenticationStore().

◆ ~StoreHtpasswd()

StoreHtpasswd::~StoreHtpasswd ( )
overridevirtual

Definition at line 21 of file htpasswd.cpp.

Member Function Documentation

◆ addUser()

void StoreHtpasswd::addUser ( const ParamsMultiMap & user)

Appends the user to htpasswd storage

Definition at line 25 of file htpasswd.cpp.

◆ findUser()

AuthenticationUser StoreHtpasswd::findUser ( Context * c,
const ParamsMultiMap & userInfo )
finalvirtual

Reimplemented from AuthenticationStore::findUser().

Implements Cutelyst::AuthenticationStore.

Definition at line 69 of file htpasswd.cpp.

References Cutelyst::AuthenticationUser::setId().

Referenced by fromSession().

◆ forSession()

QVariant StoreHtpasswd::forSession ( Context * c,
const AuthenticationUser & user )
finalvirtual

Reimplemented from AuthenticationStore::forSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 94 of file htpasswd.cpp.

References Cutelyst::AuthenticationUser::id().

◆ fromSession()

AuthenticationUser StoreHtpasswd::fromSession ( Context * c,
const QVariant & frozenUser )
finalvirtual

Reimplemented from AuthenticationStore::fromSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 100 of file htpasswd.cpp.

References findUser().