|
|
|
@ -24,7 +24,7 @@ |
|
|
|
<div v-cloak class="container mx-auto max-w-3xl"> |
|
|
|
|
|
|
|
<div v-if="authenticated === true"> |
|
|
|
<span v-if="requiresPassword" |
|
|
|
<span |
|
|
|
class="text-sm text-gray-400 mb-10 mr-2 mt-3 cursor-pointer hover:underline float-right" @click="logout"> |
|
|
|
Logout |
|
|
|
<svg class="h-3 inline" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" |
|
|
|
@ -475,6 +475,9 @@ |
|
|
|
</svg> |
|
|
|
</div> |
|
|
|
|
|
|
|
<input type="text" name="username" placeholder="Username" v-model="username" |
|
|
|
class="px-3 py-2 text-sm text-gray-500 mb-5 border-2 border-gray-100 rounded-lg w-full focus:border-red-800 outline-none" /> |
|
|
|
|
|
|
|
<input type="password" name="password" placeholder="Password" v-model="password" |
|
|
|
class="px-3 py-2 text-sm text-gray-500 mb-5 border-2 border-gray-100 rounded-lg w-full focus:border-red-800 outline-none" /> |
|
|
|
|
|
|
|
@ -488,10 +491,10 @@ |
|
|
|
</path> |
|
|
|
</svg> |
|
|
|
</button> |
|
|
|
<input v-if="!authenticating && password" type="submit" |
|
|
|
<input v-if="!authenticating && username && password" type="submit" |
|
|
|
class="bg-red-800 w-full rounded shadow py-2 text-sm text-white hover:bg-red-700 transition cursor-pointer" |
|
|
|
value="Sign In"> |
|
|
|
<input v-if="!authenticating && !password" type="submit" |
|
|
|
<input v-if="!authenticating && (!username || !password)" type="submit" |
|
|
|
class="bg-gray-200 w-full rounded shadow py-2 text-sm text-white cursor-not-allowed" value="Sign In"> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
|