Removed OAuth from CE console
This commit is contained in:
parent
3425394b6e
commit
c7e2402781
2 changed files with 48 additions and 76 deletions
|
@ -1,26 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Utopia\Locale\Locale;
|
use Utopia\Locale\Locale;
|
||||||
?>
|
?>
|
||||||
<div class="zone xl">
|
<div class="zone medium">
|
||||||
<h1 class="zone xl margin-bottom-large margin-top">
|
<h1 class="zone xl margin-bottom-large margin-top">
|
||||||
<?php echo $this->escape(Locale::getText('home.auth.signin.title')); ?>
|
<?php echo $this->escape(Locale::getText('home.auth.signin.title')); ?>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} >= 1"><?php echo $this->escape(Locale::getText('home.auth.signin.failure')); ?></div>
|
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} >= 1"><?php echo $this->escape(Locale::getText('home.auth.signin.failure')); ?></div>
|
||||||
|
|
||||||
<div class="row responsive force-reverse">
|
|
||||||
<div class="col span-6 oauth margin-bottom-large">
|
|
||||||
<p><?php echo $this->escape(Locale::getText('home.auth.signin.oauth.title')); ?></p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="" data-general-oauth="facebook" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button facebook fill margin-bottom"><i class="icon-facebook"></i> Connect with Facebook</a>
|
|
||||||
<a href="" data-general-oauth="github" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button github fill margin-bottom"><i class="icon-github-circled"></i> Connect with Github</a>
|
|
||||||
<a href="" data-general-oauth="linkedin" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button linkedin fill margin-bottom"><i class="icon-linkedin"></i> Connect with Linkedin</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col span-6">
|
|
||||||
<p><?php echo $this->escape(Locale::getText('home.auth.signin.regular.title')); ?></p>
|
<p><?php echo $this->escape(Locale::getText('home.auth.signin.regular.title')); ?></p>
|
||||||
|
|
||||||
<form name="login"
|
<form name="login"
|
||||||
|
@ -43,8 +30,6 @@ use Utopia\Locale\Locale;
|
||||||
|
|
||||||
<button><?php echo $this->escape(Locale::getText('home.auth.signin.labels.action1')); ?></button>
|
<button><?php echo $this->escape(Locale::getText('home.auth.signin.labels.action1')); ?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -2,15 +2,13 @@
|
||||||
|
|
||||||
use Utopia\Locale\Locale;
|
use Utopia\Locale\Locale;
|
||||||
?>
|
?>
|
||||||
<div class="zone xl signup">
|
<div class="zone medium signup">
|
||||||
<h1 class="zone xl margin-bottom-large margin-top">
|
<h1 class="zone xl margin-bottom-large margin-top">
|
||||||
<?php echo $this->escape(Locale::getText('home.auth.signup.title')); ?>
|
<?php echo $this->escape(Locale::getText('home.auth.signup.title')); ?>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1"><?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?></div>
|
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1"><?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?></div>
|
||||||
|
|
||||||
<div class="row responsive">
|
|
||||||
<div class="col span-6 margin-bottom-large">
|
|
||||||
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.signup.required')); ?></small>
|
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.signup.required')); ?></small>
|
||||||
|
|
||||||
<form name="register"
|
<form name="register"
|
||||||
|
@ -47,15 +45,4 @@ use Utopia\Locale\Locale;
|
||||||
|
|
||||||
<button type="submit"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.action')); ?></button>
|
<button type="submit"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.action')); ?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
<div class="col span-6 oauth">
|
|
||||||
<p><?php echo $this->escape(Locale::getText('home.auth.signin.oauth.title')); ?></p>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="" data-general-oauth="facebook" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button facebook fill margin-bottom"><i class="icon-facebook"></i> Connect with Facebook</a>
|
|
||||||
<a href="" data-general-oauth="github" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button github fill margin-bottom"><i class="icon-github-circled"></i> Connect with Github</a>
|
|
||||||
<a href="" data-general-oauth="linkedin" data-success="{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class="button linkedin fill margin-bottom"><i class="icon-linkedin"></i> Connect with Linkedin</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue