Older/WebApplication/model/AuthModel.h

15 lines
466 B
C
Raw Permalink Normal View History

2025-01-03 14:12:02 +08:00
#ifndef __AUTHMODEL_H__
#define __AUTHMODEL_H__
#include <Wt/Auth/AuthModel.h>
class AuthModel : public Wt::Auth::AuthModel {
public:
static constexpr auto CookiePath = "/";
2025-01-09 12:21:06 +08:00
static constexpr auto CookieDomain = ".amass.fun";
2025-01-03 14:12:02 +08:00
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__