aaa
This commit is contained in:
parent
52ec490202
commit
f608316e89
@ -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);
|
||||
|
@ -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
|
Reference in New Issue
Block a user