2018-12-06 20:07:51 +01:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<q-page padding class="signin">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<p>
|
2019-01-08 01:22:09 +01:00
|
|
|
<logo></logo>
|
2018-12-06 20:07:51 +01:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--Prova URL : {{env('PROVA_PAOLO')}}-->
|
|
|
|
|
|
|
|
|
|
<q-field
|
|
|
|
|
:error="$v.signin.username.$error"
|
|
|
|
|
:error-label="`${errorMsg('username', $v.signin.username)}`"
|
|
|
|
|
>
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signin.username"
|
|
|
|
|
autocomplete="username"
|
|
|
|
|
@change="val => { signin.username = val }"
|
|
|
|
|
:before="[{icon: 'person', handler () {}}]"
|
|
|
|
|
@blur="$v.signin.username.$touch"
|
|
|
|
|
:error="$v.signin.username.$error"
|
2018-12-26 21:02:16 +01:00
|
|
|
:float-label="$t('reg.username')"></q-input>
|
2018-12-06 20:07:51 +01:00
|
|
|
</q-field>
|
|
|
|
|
|
|
|
|
|
<q-field
|
|
|
|
|
:error="$v.signin.password.$error"
|
|
|
|
|
:error-label="`${errorMsg('password', $v.signin.password)}`"
|
|
|
|
|
>
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signin.password"
|
2019-01-02 18:01:36 +01:00
|
|
|
type="password"
|
2018-12-06 20:07:51 +01:00
|
|
|
:before="[{icon: 'vpn_key', handler () {}}]"
|
|
|
|
|
@blur="$v.signin.password.$touch"
|
|
|
|
|
:error="$v.signin.password.$error"
|
2018-12-26 21:02:16 +01:00
|
|
|
:float-label="$t('reg.password')"></q-input>
|
2018-12-06 20:07:51 +01:00
|
|
|
</q-field>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a :href="getlinkforgetpwd">{{$t('reg.forgetpassword')}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
2018-12-26 21:02:16 +01:00
|
|
|
<q-card-main class="flex flex-center">
|
|
|
|
|
<!--<q-btn v-if="$myconfig.socialLogin.facebook" :loading="loading" class="q-mb-md q-mr-md" rounded icon="fab fa-facebook-f" size="sm" color="blue-10" text-color="white" @click="facebook" :label="$t('components.authentication.login.facebook')"/>-->
|
|
|
|
|
<!--
|
|
|
|
|
<q-btn v-if="$myconfig.socialLogin.facebook" class="q-mb-md q-mr-md" rounded icon="fab fa-facebook-f" size="sm" color="blue-10" text-color="white" @click="facebook" :label="$t('components.authentication.login.facebook')"/>
|
|
|
|
|
<q-btn v-if="$myconfig.socialLogin.google" class="q-mb-md q-mr-md" rounded icon="fab fa-google" size="sm" color="deep-orange-14" text-color="white" @click="google" :label="$t('components.authentication.login.google')"/>
|
|
|
|
|
-->
|
|
|
|
|
</q-card-main>
|
|
|
|
|
|
2018-12-06 20:07:51 +01:00
|
|
|
<div align="center">
|
|
|
|
|
<q-btn rounded size="lg" color="primary" @click="submit" :disable="$v.$error">{{$t('login.enter')}}
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
|
|
|
|
</q-page>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./signin.ts">
|
|
|
|
|
</script>
|