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')}}-->
|
2019-02-06 18:47:54 +01:00
|
|
|
<form>
|
2019-03-13 14:23:25 +01:00
|
|
|
<div class="q-gutter-xs">
|
2018-12-06 20:07:51 +01:00
|
|
|
|
2019-02-06 18:47:54 +01:00
|
|
|
<q-input
|
|
|
|
|
v-model="signin.username"
|
2019-03-13 13:40:17 +01:00
|
|
|
rounded outlined
|
2019-02-06 18:47:54 +01:00
|
|
|
@blur="$v.signin.username.$touch"
|
|
|
|
|
:error="$v.signin.username.$error"
|
2019-03-13 13:40:17 +01:00
|
|
|
:error-message="`${errorMsg('username', $v.signin.username)}`"
|
|
|
|
|
:label="$t('reg.username_login')">
|
2018-12-06 20:07:51 +01:00
|
|
|
|
2019-03-13 13:40:17 +01:00
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="person"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
2019-02-06 18:47:54 +01:00
|
|
|
<q-input
|
|
|
|
|
v-model="signin.password"
|
|
|
|
|
type="password"
|
2019-03-13 13:40:17 +01:00
|
|
|
rounded outlined
|
2019-02-06 18:47:54 +01:00
|
|
|
@blur="$v.signin.password.$touch"
|
|
|
|
|
:error="$v.signin.password.$error"
|
2019-03-13 13:40:17 +01:00
|
|
|
:error-message="`${errorMsg('password', $v.signin.password)}`"
|
|
|
|
|
:label="$t('reg.password')">
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="vpn_key"/>
|
|
|
|
|
</template>
|
2018-12-06 20:07:51 +01:00
|
|
|
|
2019-03-13 13:40:17 +01:00
|
|
|
</q-input>
|
|
|
|
|
<div>
|
|
|
|
|
<a :href="getlinkforgetpwd">{{$t('reg.forgetpassword')}}</a>
|
|
|
|
|
</div>
|
2018-12-06 20:07:51 +01:00
|
|
|
|
2019-03-13 13:40:17 +01:00
|
|
|
<br>
|
2018-12-06 20:07:51 +01:00
|
|
|
|
2019-03-13 13:40:17 +01:00
|
|
|
<q-card 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>
|
2018-12-26 21:02:16 +01:00
|
|
|
|
2019-03-13 13:40:17 +01:00
|
|
|
<div align="center">
|
|
|
|
|
<q-btn rounded size="lg" color="primary" @click="submit"
|
|
|
|
|
:disable="$v.$error || iswaitingforRes">{{$t('login.enter')}}
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2019-02-06 18:47:54 +01:00
|
|
|
</div>
|
|
|
|
|
</form>
|
2018-12-06 20:07:51 +01:00
|
|
|
</q-page>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./signin.ts">
|
|
|
|
|
</script>
|
2019-01-16 02:26:43 +01:00
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './signin.scss';
|
|
|
|
|
</style>
|