mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
support legacy _user.auth.facebook.name in index.html
This commit is contained in:
parent
16e60ae3d4
commit
35039e6af6
1 changed files with 8 additions and 1 deletions
|
|
@ -16,7 +16,14 @@
|
|||
<a href="/auth/facebook"><img src='/img/facebook-login-register.jpeg' alt="Login / Register With Facebook"/></a>
|
||||
{else}
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-small">{_user.auth.facebook.name.givenName} {_user.auth.facebook.name.familyName}</button>
|
||||
<button class="btn btn-small">
|
||||
{#if _user.auth.facebook.name.giveName}
|
||||
{_user.auth.facebook.name.givenName} {_user.auth.facebook.name.familyName}
|
||||
{else}
|
||||
<!-- support legacy Everyauth schema (now using derby-auth, Passport) -->
|
||||
{_user.auth.facebook.name}
|
||||
{/}
|
||||
</button>
|
||||
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue