Redirect anonymous user from authenticated pages
This commit is contained in:
@@ -18,4 +18,13 @@ pub const MAX_SESSION_DURATION: i64 = 3600 * 6;
|
||||
pub const MIN_PASS_LEN: usize = 4;
|
||||
|
||||
/// The name of the cookie used to store session information
|
||||
pub const SESSION_COOKIE_NAME: &str = "auth-cookie";
|
||||
pub const SESSION_COOKIE_NAME: &str = "auth-cookie";
|
||||
|
||||
/// Authenticated routes prefix
|
||||
pub const AUTHENTICATED_ROUTES: &str = "/settings";
|
||||
|
||||
/// Admin routes prefix
|
||||
pub const ADMIN_ROUTES: &str = "/admin";
|
||||
|
||||
/// Auth route
|
||||
pub const LOGIN_ROUTE: &str = "/login";
|
Reference in New Issue
Block a user