Commit 1033a3fd authored by blallo's avatar blallo

Add the logo if present in config.

parent 8bba11b3
......@@ -74,7 +74,7 @@ func staticCssBootstrapMinCss() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/css/bootstrap.min.css", size: 140936, mode: os.FileMode(420), modTime: time.Unix(1550305824, 0)}
info := bindataFileInfo{name: "static/css/bootstrap.min.css", size: 140936, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -147,7 +147,7 @@ func staticCssSigninCss() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/css/signin.css", size: 1009, mode: os.FileMode(420), modTime: time.Unix(1535013418, 0)}
info := bindataFileInfo{name: "static/css/signin.css", size: 1009, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -170,7 +170,7 @@ func staticJsBootstrap413MinJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/bootstrap-4.1.3.min.js", size: 51039, mode: os.FileMode(420), modTime: time.Unix(1550305766, 0)}
info := bindataFileInfo{name: "static/js/bootstrap-4.1.3.min.js", size: 51039, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -189,7 +189,7 @@ func staticJsJquery331MinJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/jquery-3.3.1.min.js", size: 86927, mode: os.FileMode(420), modTime: time.Unix(1516469204, 0)}
info := bindataFileInfo{name: "static/js/jquery-3.3.1.min.js", size: 86927, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -243,7 +243,7 @@ func staticJsLogoutJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/logout.js", size: 1005, mode: os.FileMode(420), modTime: time.Unix(1535013418, 0)}
info := bindataFileInfo{name: "static/js/logout.js", size: 1005, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -265,7 +265,7 @@ func staticJsPopper1143MinJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/popper-1.14.3.min.js", size: 20337, mode: os.FileMode(420), modTime: time.Unix(1526549114, 0)}
info := bindataFileInfo{name: "static/js/popper-1.14.3.min.js", size: 20337, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1030,7 +1030,7 @@ func staticJsU2fApiJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/u2f-api.js", size: 20880, mode: os.FileMode(420), modTime: time.Unix(1535013418, 0)}
info := bindataFileInfo{name: "static/js/u2f-api.js", size: 20880, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1099,7 +1099,7 @@ func staticJsU2fJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/u2f.js", size: 1274, mode: os.FileMode(420), modTime: time.Unix(1541228751, 0)}
info := bindataFileInfo{name: "static/js/u2f.js", size: 1274, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1109,7 +1109,16 @@ var _templatesLogin_otpHtml = []byte(`{{template "header" .}}
<form class="form-signin" action="{{.URLPrefix}}/login" method="post">
{{.CSRFField}}
<h1 class="form-signin-heading">Sign In / OTP</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In / OTP</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......@@ -1145,7 +1154,7 @@ func templatesLogin_otpHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/login_otp.html", size: 711, mode: os.FileMode(420), modTime: time.Unix(1556965814, 0)}
info := bindataFileInfo{name: "templates/login_otp.html", size: 937, mode: os.FileMode(420), modTime: time.Unix(1561391872, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1155,7 +1164,16 @@ var _templatesLogin_passwordHtml = []byte(`{{template "header" .}}
<form class="form-signin" action="{{.URLPrefix}}/login" method="post">
{{.CSRFField}}
<h1 class="form-signin-heading">Sign In</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......@@ -1207,7 +1225,7 @@ func templatesLogin_passwordHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/login_password.html", size: 1187, mode: os.FileMode(420), modTime: time.Unix(1550307045, 0)}
info := bindataFileInfo{name: "templates/login_password.html", size: 1413, mode: os.FileMode(420), modTime: time.Unix(1561391985, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1218,7 +1236,16 @@ var _templatesLogin_u2fHtml = []byte(`{{template "header" .}}
{{.CSRFField}}
<input type="hidden" id="u2fResponseField" name="u2f_response" value="">
<h1 class="form-signin-heading">Sign In / U2F</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In / U2F</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......@@ -1255,7 +1282,7 @@ func templatesLogin_u2fHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/login_u2f.html", size: 669, mode: os.FileMode(420), modTime: time.Unix(1556965831, 0)}
info := bindataFileInfo{name: "templates/login_u2f.html", size: 895, mode: os.FileMode(420), modTime: time.Unix(1561391993, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1315,7 +1342,7 @@ func templatesLogoutHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/logout.html", size: 1063, mode: os.FileMode(420), modTime: time.Unix(1548600535, 0)}
info := bindataFileInfo{name: "templates/logout.html", size: 1063, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1364,7 +1391,7 @@ func templatesPageHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/page.html", size: 1865, mode: os.FileMode(420), modTime: time.Unix(1551041668, 0)}
info := bindataFileInfo{name: "templates/page.html", size: 1865, mode: os.FileMode(420), modTime: time.Unix(1561034381, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......
......@@ -3,7 +3,16 @@
<form class="form-signin" action="{{.URLPrefix}}/login" method="post">
{{.CSRFField}}
<h1 class="form-signin-heading">Sign In / OTP</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In / OTP</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......
......@@ -3,7 +3,16 @@
<form class="form-signin" action="{{.URLPrefix}}/login" method="post">
{{.CSRFField}}
<h1 class="form-signin-heading">Sign In</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......
......@@ -4,7 +4,16 @@
{{.CSRFField}}
<input type="hidden" id="u2fResponseField" name="u2f_response" value="">
<h1 class="form-signin-heading">Sign In / U2F</h1>
<div class="row">
{{if .SiteLogo}}
<div class="col-md1">
<img src="./img/site_logo">
</div>
{{end}}
<div class="col-md3">
<h1 class="form-signin-heading">Sign In / U2F</h1>
</div>
</div>
{{if .Error}}
<p class="error">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment