Refactor the login handler
Compare changes
- ale authored
If we don't, they will trigger the login handler and invalidate the current session (if any), which prevents the user from being able to log in.
+ 27
− 24
@@ -74,7 +74,7 @@ func staticCssBootstrapMinCss() (*asset, error) {
@@ -82,7 +82,7 @@ func staticCssBootstrapMinCss() (*asset, error) {
@@ -117,6 +117,9 @@ var _staticCssSigninCss = []byte(`body {
@@ -147,7 +150,7 @@ func staticCssSigninCss() (*asset, error) {
@@ -170,7 +173,7 @@ func staticJsBootstrap413MinJs() (*asset, error) {
@@ -189,7 +192,7 @@ func staticJsJquery331MinJs() (*asset, error) {
@@ -243,7 +246,7 @@ func staticJsLogoutJs() (*asset, error) {
@@ -265,7 +268,7 @@ func staticJsPopper1143MinJs() (*asset, error) {
@@ -1030,7 +1033,7 @@ func staticJsU2fApiJs() (*asset, error) {
@@ -1099,14 +1102,14 @@ func staticJsU2fJs() (*asset, error) {
@@ -1154,7 +1157,7 @@ func templatesLogin_otpHtml() (*asset, error) {
@@ -1225,14 +1228,14 @@ func templatesLogin_passwordHtml() (*asset, error) {
@@ -1282,7 +1285,7 @@ func templatesLogin_u2fHtml() (*asset, error) {
@@ -1342,7 +1345,7 @@ func templatesLogoutHtml() (*asset, error) {
@@ -1353,8 +1356,8 @@ var _templatesPageHtml = []byte(`{{define "header"}}<!DOCTYPE html>
@@ -1366,15 +1369,15 @@ var _templatesPageHtml = []byte(`{{define "header"}}<!DOCTYPE html>
@@ -1391,7 +1394,7 @@ func templatesPageHtml() (*asset, error) {