Remove notice in deprecated OAuth Methods

pull/8484/head
Mrugesh Mohapatra 2016-05-06 14:37:48 +00:00
parent bc83a36ad0
commit 4f9ea83f5a
No known key found for this signature in database
GPG Key ID: D38A28D5354B173C
1 changed files with 2 additions and 9 deletions

View File

@ -15,17 +15,10 @@ block content
a.btn.btn-lg.btn-block.btn-social.btn-twitter(href='/auth/twitter')
i.fa.fa-twitter
| Sign in with Twitter
br
p
strong IMPORTANT NOTICE
br
em These options are under deprecation and will be removed soon.
br
em After you are signed in, go to the settings page and add GitHub and/or Email as your sign in option
script.
$(document).ready(function() {
var method = localStorage.getItem('lastSigninMethod'),
var method = localStorage.getItem('lastSigninMethodDeprecated'),
btnSelector = 'a.btn.btn-lg.btn-block.btn-social';
if (method) {
try {
@ -51,6 +44,6 @@ block content
$(this).removeClass('active');
obj.methodClass = $(this).attr('class').split(' ').pop();
obj.methodLink = $(this).attr('href');
localStorage.setItem('lastSigninMethod', JSON.stringify(obj));
localStorage.setItem('lastSigninMethodDeprecated', JSON.stringify(obj));
});
});