Older/WebApplication/model/AuthModel.h
amass c3f535e82e
All checks were successful
Deploy / Build (push) Successful in 7m23s
update cookie lifetime.
2025-01-03 14:12:02 +08:00

14 lines
411 B
C++

#ifndef __AUTHMODEL_H__
#define __AUTHMODEL_H__
#include <Wt/Auth/AuthModel.h>
class AuthModel : public Wt::Auth::AuthModel {
public:
static constexpr auto CookiePath = "/";
AuthModel(const Wt::Auth::AuthService &baseAuth, Wt::Auth::AbstractUserDatabase &users);
Wt::Auth::User processAuthToken() final;
void setRememberMeCookie(const Wt::Auth::User &user) final;
};
#endif // __AUTHMODEL_H__