register/login: show only remotesources with register/login enabled
This commit is contained in:
parent
43e860d3c5
commit
7c80b875f8
|
@ -13,19 +13,21 @@
|
||||||
v-for="rs in remotesources"
|
v-for="rs in remotesources"
|
||||||
v-bind:key="rs.id"
|
v-bind:key="rs.id"
|
||||||
>
|
>
|
||||||
<LoginForm
|
<div v-if="rs.login_enabled">
|
||||||
action="Login"
|
<LoginForm
|
||||||
:name="rs.name"
|
action="Login"
|
||||||
v-if="rs.auth_type == 'password'"
|
:name="rs.name"
|
||||||
v-on:login="doLogin($event.username, $event.password, rs.name)"
|
v-if="rs.auth_type == 'password'"
|
||||||
/>
|
v-on:login="doLogin($event.username, $event.password, rs.name)"
|
||||||
<div v-else class="w-full max-w-xs">
|
/>
|
||||||
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
<div v-else class="w-full max-w-xs">
|
||||||
<div class="flex justify-center">
|
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
||||||
<button
|
<div class="flex justify-center">
|
||||||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
|
<button
|
||||||
@click="doLogin(null, null, rs.name)"
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
|
||||||
>Login with {{rs.name}}</button>
|
@click="doLogin(null, null, rs.name)"
|
||||||
|
>Login with {{rs.name}}</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,19 +22,21 @@
|
||||||
v-for="rs in remotesources"
|
v-for="rs in remotesources"
|
||||||
v-bind:key="rs.id"
|
v-bind:key="rs.id"
|
||||||
>
|
>
|
||||||
<LoginForm
|
<div v-if="rs.registration_enabled">
|
||||||
action="Register"
|
<LoginForm
|
||||||
:name="rs.name"
|
action="Register"
|
||||||
v-if="rs.auth_type == 'password'"
|
:name="rs.name"
|
||||||
v-on:login="doAuthorize(rs.name, $event.username, $event.password)"
|
v-if="rs.auth_type == 'password'"
|
||||||
/>
|
v-on:login="doAuthorize(rs.name, $event.username, $event.password)"
|
||||||
<div v-else class="w-full max-w-xs">
|
/>
|
||||||
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
<div v-else class="w-full max-w-xs">
|
||||||
<div class="flex justify-center">
|
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
||||||
<button
|
<div class="flex justify-center">
|
||||||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
|
<button
|
||||||
@click="doAuthorize(rs.name)"
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
|
||||||
>Register with {{rs.name}}</button>
|
@click="doAuthorize(rs.name)"
|
||||||
|
>Register with {{rs.name}}</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue