Blame view

src/pages/changepassword.vue 1.88 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  <template>
    <v-app id="login">
      <v-toolbar color="grey lighten">
        <v-toolbar-items>
      <img src="/static/ana@2x.png" height="36" alt="ana">
      </v-toolbar-items>
    </v-toolbar>
      <v-content>
        <v-container fluid fill-height>
          <v-layout align-center justify-center>
            <v-flex xs12 sm8 md6 lg4>
            <v-toolbar color="black" dark>
            <v-spacer></v-spacer>
            <v-toolbar-title>Change Password</v-toolbar-title>
            <v-spacer></v-spacer>
            
            </v-toolbar>
              <v-card class="elevation-1 pa-3">
                <v-card-text>
              <v-form class="mt-5">
              <v-text-field type="password" label="Password"></v-text-field>
              <v-text-field type="password" label="New Password"></v-text-field>
              <v-text-field type="password" label="Confirm Password"></v-text-field>
                  </v-form>
                </v-card-text>
            <v-card-actions>
            <v-flex text-sm-center>
                  <v-btn class="mt-3" 
                  round 
                  color="black" 
                  dark large
                  :loading="loading" 
                  @click="reset">Reset Password</v-btn></v-flex>
                  </v-card-actions>
              </v-card>
            </v-flex>
          </v-layout>
        </v-container>
       </v-content>
      <v-footer class="pa-4" color="grey darken-2">
    
    </v-footer>
    </v-app>
  </template>
  <script>
  import axios from 'axios';
  export default {
    data () {
      return {
        show1: false,
        loading: false,
        valid: false,
        model: {
          custom: {
            password: '',
            npassword: '',
            cnpassword: '',
          }
        }
      };
    },
    methods: {
      reset () {
        this.loading = true;
        setTimeout(() => {
          this.$router.push('/dashboard');
        }, 1000);
      }
    }
  };
  </script>
  <style>
  img{
  position:absolute;
  top:13px;
  left:50px
  
  }
  </style>