Older/WebApplication/model/AuthModel.h
amass cb6525636c
All checks were successful
Deploy / Build (push) Successful in 5m32s
make cookie domain prepend .
2025-01-09 12:21:06 +08:00

15 lines
466 B
C++

#ifndef __AUTHMODEL_H__
#define __AUTHMODEL_H__
#include <Wt/Auth/AuthModel.h>
class AuthModel : public Wt::Auth::AuthModel {
public:
static constexpr auto CookiePath = "/";
static constexpr auto CookieDomain = ".amass.fun";
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__