mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 17:24:01 +00:00
Explain the /register/password redirect and reword a registration test comment
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -400,7 +400,7 @@ where
|
||||
mas_router::Register::route(),
|
||||
get(self::views::register::get).post(self::views::register::post),
|
||||
)
|
||||
// XXX: hard-coded redirect from /register/password to /register
|
||||
// Keeps links to the former password registration page working
|
||||
.route(
|
||||
"/register/password",
|
||||
redirect_to(mas_router::Register::route()),
|
||||
|
||||
@@ -621,7 +621,7 @@ mod tests {
|
||||
.expect("the upstream sessions cookie should be set");
|
||||
assert!(sessions[0].get("username").is_none());
|
||||
|
||||
// The password path sees it whole, and the policy rejects it
|
||||
// Password registration keeps the overlong username, and the policy rejects it
|
||||
let request = cookies.with_cookies(Request::post("/register").form(serde_json::json!({
|
||||
"csrf": csrf_token,
|
||||
"username": username,
|
||||
|
||||
Reference in new issue
Block a user