Commit f608316e authored by Evert Prants's avatar Evert Prants

aaa

parent 52ec4902
......@@ -30,11 +30,11 @@
var startApp = function() {
gapi.load('auth2', function(){
// Retrieve the singleton for the GoogleAuth library and set up the client.
var auth2 = gapi.auth2.init({
gapi.auth2.init({
client_id: '#{auth.google}',
cookie_policy: 'single_host_origin',
fetch_basic_profile: true
}).then(function () {
}).then(function (auth2) {
attachSignin(auth2, document.querySelector('.google-login'));
}, function (e) {
console.error(e);
......
extends ../layout.pug
block title
|Icy Network - Log In
block body
.container.mb-4.mt-4
h1 Log in
.row
.col-sm-8
if message.text
if message.error
.alert.alert-danger
span #{message.text}
else
.alert.alert-success
span #{message.text}
form#loginForm(method="POST", action="")
input(type="hidden", name="csrf", value=csrf)
.form-group
label(for="username") Username or Email Address
input.form-control(type="text", name="username", id="username")
.form-group
label(for="password") Password
input.form-control(type="password", name="password", id="password")
button.btn.btn-primary(type="submit") Log in
a(href="/register") Create an account
| ·
a(href="/login/reset") Forgot password?
if auth && !registrations
| ·
a(href="/login/legacy") Social login
if auth && registrations
aside.col-sm-4
include ../includes/external.pug
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