Move from instagram to facebook oauth
This commit is contained in:
@@ -107,14 +107,14 @@
|
||||
background: #c23321;
|
||||
}
|
||||
|
||||
.btn-instagram {
|
||||
background: #e4405f;
|
||||
.btn-facebook {
|
||||
background: #1877f2;
|
||||
color: white;
|
||||
width: 49%;
|
||||
}
|
||||
|
||||
.btn-instagram:hover {
|
||||
background: #d62d46;
|
||||
.btn-facebook:hover {
|
||||
background: #166fe5;
|
||||
}
|
||||
|
||||
.divider {
|
||||
@@ -212,7 +212,7 @@
|
||||
</div>
|
||||
|
||||
<a href="/auth/google" class="btn btn-google" id="googleBtn">Google</a>
|
||||
<a href="/auth/instagram" class="btn btn-instagram" id="instagramBtn">Instagram</a>
|
||||
<a href="/auth/facebook" class="btn btn-facebook" id="facebookBtn">Facebook</a>
|
||||
|
||||
<div class="toggle-form">
|
||||
<a href="#" onclick="toggleForm()">Don't have an account? Register</a>
|
||||
@@ -241,7 +241,7 @@
|
||||
</div>
|
||||
|
||||
<a href="/auth/google" class="btn btn-google" id="googleRegBtn">Sign up with Google</a>
|
||||
<a href="/auth/instagram" class="btn btn-instagram" id="instagramRegBtn">Sign up with Instagram</a>
|
||||
<a href="/auth/facebook" class="btn btn-facebook" id="facebookRegBtn">Sign up with Facebook</a>
|
||||
|
||||
<div class="toggle-form">
|
||||
<a href="#" onclick="toggleForm()">Already have an account? Login</a>
|
||||
@@ -361,9 +361,9 @@
|
||||
if (redirectUrl) {
|
||||
const encodedRedirect = encodeURIComponent(redirectUrl);
|
||||
document.getElementById('googleBtn').href = `/auth/google?redirect=${encodedRedirect}`;
|
||||
document.getElementById('instagramBtn').href = `/auth/instagram?redirect=${encodedRedirect}`;
|
||||
document.getElementById('facebookBtn').href = `/auth/facebook?redirect=${encodedRedirect}`;
|
||||
document.getElementById('googleRegBtn').href = `/auth/google?redirect=${encodedRedirect}`;
|
||||
document.getElementById('instagramRegBtn').href = `/auth/instagram?redirect=${encodedRedirect}`;
|
||||
document.getElementById('facebookRegBtn').href = `/auth/facebook?redirect=${encodedRedirect}`;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user