Skip to main content

sign_in_url

Function sign_in_url 

Source
pub fn sign_in_url(bad: bool, next: Option<&str>) -> String
Expand description

Builds the sign-in URL: /admin/login, with ?bad=true when a previous attempt failed and &next=<encoded> when next is a safe local path to return to after login (open-redirect guarded — a non-local next is dropped).