This commit is contained in:
Evert Prants 2020-01-29 10:52:49 +02:00
parent 52ec490202
commit f608316e89
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 2 additions and 36 deletions

View File

@ -30,11 +30,11 @@
var startApp = function() { var startApp = function() {
gapi.load('auth2', function(){ gapi.load('auth2', function(){
// Retrieve the singleton for the GoogleAuth library and set up the client. // Retrieve the singleton for the GoogleAuth library and set up the client.
var auth2 = gapi.auth2.init({ gapi.auth2.init({
client_id: '#{auth.google}', client_id: '#{auth.google}',
cookie_policy: 'single_host_origin', cookie_policy: 'single_host_origin',
fetch_basic_profile: true fetch_basic_profile: true
}).then(function () { }).then(function (auth2) {
attachSignin(auth2, document.querySelector('.google-login')); attachSignin(auth2, document.querySelector('.google-login'));
}, function (e) { }, function (e) {
console.error(e); console.error(e);

View File

@ -1,34 +0,0 @@
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