Newer
Older
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
80
81
82
<div class="login-2" style="background-image: linear-gradient(150deg, rgba(0, 0, 0, 0.6)15%, rgba(0, 0, 0, 0.6)70%, rgba(0, 0, 0, 0.6)94%), url(assets/images/college-bg.jpg);">
<div class="container">
<div class="col-md-12 pad-0">
<div class="row login-box-2">
<div class="col-lg-5 col-md-12 col-sm-12 col-pad-0 bg-img align-self-center none-992">
<a href="#">
<img src="assets/images/maharashtralogo.png" class="logo" alt="logo">
</a>
<h4>RGSTC</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</div>
<div class="col-lg-7 col-md-12 col-sm-12 col-pad-0 align-self-center">
<div class="login-inner-form">
<div class="details">
<h3>Sign into your account</h3>
<form>
<div id="loginFormId" class="form-group">
<label id="emailId" for="email">
Email address
</label>
<input v-model="username" id="email" type="email" name="email" class="form-control" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">
We'll never share your email with anyone else.
</small>
</div>
<div class="form-group">
<label for="password">
Password
</label>
<input v-model="password" type="password" name="password" class="form-control" @focus="showPassInfo = true" id="password" @blur="showPassInfo = false" placeholder="Password">
</div>
<div class="checkbox clearfix">
<div class="form-check checkbox-theme">
<input class="form-check-input" type="checkbox" value="" id="rememberMe">
<label class="form-check-label" for="rememberMe">
Remember me
</label>
</div>
<a href="forgot-password-6.html">Forgot Password</a>
</div>
<button id="loginBtn" type="submit" name="btnlogin" class="btn btn-gradient btn-block px-4 mr-2 mb-2" @click="authenticate()">
Login
</button>
<div class="aro-pswd_info">
<div v-show="showPassInfo" id="pswd_info">
<h4>Password must be requirements</h4>
<ul>
<li id="letter" class="invalid">
At least
<strong>one letter</strong>
</li>
<li id="capital" class="invalid">
At least
<strong>one capital letter</strong>
</li>
<li id="number" class="invalid">
At least
<strong>one number</strong>
</li>
<li id="length" class="invalid">
Be at least
<strong>8 characters</strong>
</li>
<li id="space" class="invalid">
be
<strong> use [~,!,@,#,$,%,^,&,*,-,=,.,;,']</strong>
</li>
</ul>
</div>
</div>
</form>
<p>Don't have an account?<router-link to="dashboard"> Register here</router-link>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <section id="login">
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<div class="container-fluid">
<div class="row">
<div class="col-md-4 offset-md-4">
<div class="login-card">
<img
src="../assets/RGSTC.jpg"
alt="mkcl logo"
class="mb-4"
width="100px"
>
<div
id="loginFormId"
class="form-group"
>
<label
id="emailId"
for="email"
>
Email address
</label>
<input
v-model="username"
id="email"
type="email"
name="email"
class="form-control"
aria-describedby="emailHelp"
placeholder="Enter email"
>
<small
id="emailHelp"
class="form-text text-muted"
>
We'll never share your email with anyone else.
</small>
</div>
<div class="form-group">
<label for="password">
Password
</label>
<input
v-model="password"
type="password"
name="password"
class="form-control"
@focus="showPassInfo = true"
id="password"
@blur="showPassInfo = false"
placeholder="Password"
>
</div>
<button
id="loginBtn"
type="submit"
name="btnlogin"
class="btn btn-info px-4 mr-2"
@click="authenticate()"
>
Submit
</button>
<button
type="button"
name="btnlogin"
class="btn btn-info px-4"
@click="show()"
>
Show
</button>
</div>
</div>
<div class="col-md-4">
<div class="aro-pswd_info">
<div
v-show="showPassInfo"
id="pswd_info"
>
<h4>Password must be requirements</h4>
<ul>
<li
id="letter"
class="invalid"
>
At least
<strong>one letter</strong>
</li>
<li
id="capital"
class="invalid"
>
At least
<strong>one capital letter</strong>
</li>
<li
id="number"
class="invalid"
>
At least
<strong>one number</strong>
</li>
<li
id="length"
class="invalid"
>
Be at least
<strong>8 characters</strong>
</li>
<li
id="space"
class="invalid"
>
be
<strong> use [~,!,@,#,$,%,^,&,*,-,=,.,;,']</strong>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script>
import Vue from 'vue'
import Response from '@/plugins/response.js'
export default {
data() {
return {
username: '',
password: '',
showPassInfo: false
}
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
methods: {
show() {
let r = new Response({})
r.showElement('loginFormId')
},
authenticate() {
this.$store.dispatch('AUTH_REQUEST', { loginId: this.username, password: this.password }).then(res => {
// Redirect to next page after suucessfull login
alert('Login : ' + res.isValid('MQLLogin'))
})
.catch(err => {
alert(err)
Vue.$log.error(err)
})
// let req = {
// loginId: this.username,
// password: this.password
// };
// this.$MQLFetch('O.LoginService', req)
// .then(res => {
// // alert(JSON.stringify(res));
// this.$router.push("/");
// })
// .catch(error => {
// // Do in case of error
// Vue.error(error);
// });
},
validatePassword() {
// validate password length
if (this.password.length < 8) {
let showLengthMsg = document.getElementById('length')
showLengthMsg.classList.remove('valid')
showLengthMsg.classList.add('invalid')
} else {
let showLengthMsg = document.getElementById('length')
showLengthMsg.classList.remove('invalid')
showLengthMsg.classList.add('valid')
}
// validate letter
if (this.password.match(/[A-z]/)) {
let showLengthMsg = document.getElementById('letter')
showLengthMsg.classList.remove('invalid')
showLengthMsg.classList.add('valid')
} else {
let showLengthMsg = document.getElementById('letter')
showLengthMsg.classList.remove('valid')
showLengthMsg.classList.add('invalid')
}
// validate capital letter
if (this.password.match(/[A-Z]/)) {
let showLengthMsg = document.getElementById('capital')
showLengthMsg.classList.remove('invalid')
showLengthMsg.classList.add('valid')
} else {
let showLengthMsg = document.getElementById('capital')
showLengthMsg.classList.remove('valid')
showLengthMsg.classList.add('invalid')
}
// validate number
if (this.password.match(/\d/)) {
let showLengthMsg = document.getElementById('number')
showLengthMsg.classList.remove('invalid')
showLengthMsg.classList.add('valid')
} else {
let showLengthMsg = document.getElementById('number')
showLengthMsg.classList.remove('valid')
showLengthMsg.classList.add('invalid')
}
// validate space
if (this.password.match(/[^a-zA-Z0-9\-/]/)) {
let showLengthMsg = document.getElementById('space')
showLengthMsg.classList.remove('invalid')
showLengthMsg.classList.add('valid')
} else {
let showLengthMsg = document.getElementById('space')
showLengthMsg.classList.remove('valid')
showLengthMsg.classList.add('invalid')
}
}
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
.login-2 {
background: #f5f5f5;
min-height: 100vh;
position: relative;
// text-align: center;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
justify-content: center;
align-items: center;
padding: 30px 0;
}
.login-2 a>h4 {
font-size: 24px;
color: #fff;
}
.login-2 .login-inner-form {
color: #717171;
// text-align: center;
padding: 20px 0;
}
.login-2 .col-pad-0 {
padding: 0;
}
.login-box-2 {
margin: 0 150px 0 200px;
max-width: 700px;
border-radius: 10px;
box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
background: #fff;
}
.login-box-2 h4 {
text-align: center;
color: #fff;
font-weight: 600;
}
.login-2 .login-inner-form .details p a {
margin-left: 3px;
color: #3afe;
}
.login-2 .login-inner-form .details p {
margin-bottom: 0;
font-size: 14px;
}
.login-2 .login-inner-form .details {
padding: 30px 60px 30px 0;
}
.login-2 .bg-img {
background-size: cover;
width: 100%;
bottom: 0;
border-radius: 10px;
padding: 80px 30px;
background-image: linear-gradient(-225deg, #01c0c8 0%, #6B8DD6 48%, #8E37D7 100%);
margin: 30px 0;
left: -60px;
z-index: 999;
}
.login-2 .none-2 {
display: none;
}
.login-2 .btn-outline:hover {
background: #fff;
text-decoration: none;
color: #1b548c;
}
.login-2 .login-inner-form h3 {
margin: 0 0 25px;
font-size: 22px;
font-weight: 400;
color: #352a3a;
}
.login-2 .login-inner-form .form-group {
margin-bottom: 20px;
}
.login-2 .login-inner-form .btn-md {
cursor: pointer;
padding: 10px 50px 8px 50px;
letter-spacing: 1px;
font-size: 15px;
font-weight: 400;
height: 45px;
border-radius: 3px;
text-transform: uppercase;
}
.login-2 .bg-img .social-list li {
display: inline-block;
font-size: 16px;
}
.login-2 .bg-img .logo {
width: 100px;
margin: auto;
margin-bottom: 20px;
}
.login-2 .bg-img p {
font-size: 15px;
color: #e8e8e8;
text-align: center;
margin-bottom: 30px;
}
.login-2 .bg-img .btn-sm {
padding: 6px 20px 6px 20px;
font-size: 13px;
}
.login-2 .bg-img .social-list {
padding: 0;
margin: 35px 0 0;
}
.login-2 .bg-img .social-list li a {
margin: 0 5px;
font-size: 20px;
color: #1b548c;
border-radius: 3px;
display: inline-block;
}
.login-2 .bg-img .social-list li a:hover {
color: #fff;
}
.login-2 .login-inner-form input[type=checkbox],
input[type=radio] {
margin-right: 3px;
}
.login-2 .login-inner-form button:focus {
outline: none;
outline: 0 auto -webkit-focus-ring-color;
}
.login-2 .login-inner-form .btn-theme.focus,
.btn-theme:focus {
box-shadow: none;
}
.login-2 .login-inner-form .btn-theme {
background: #1b548c;
border: none;
color: #fff;
}
.login-2 .login-inner-form .btn-theme:hover {
background: #194c7d;
box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
}
.login-2 .login-inner-form .terms {
margin-left: 3px;
}
.login-2 .login-inner-form .checkbox {
margin-bottom: 20px;
font-size: 14px;
}
.login-2 .login-inner-form .form-check {
float: left;
margin-bottom: 0;
padding-left: 2px;
}
.login-2 .login-inner-form .form-check a {
color: #717171;
float: right;
}
.login-2 .login-inner-form .form-check-input {
position: absolute;
margin-left: 0;
}
.login-2 .login-inner-form .form-check label::before {
content: "";
display: inline-block;
position: absolute;
width: 17px;
height: 17px;
margin-left: -25px;
border: 1px solid #cccccc;
border-radius: 3px;
background-color: #fff;
}
.login-2 .login-inner-form .form-check-label {
padding-left: 25px;
margin-bottom: 0;
font-size: 14px;
}
.login-2 .login-inner-form .checkbox-theme input[type="checkbox"]:checked+label::before {
background-color: #1db2cb;
border-color: #1b548c;
}
.login-2 .login-inner-form input[type=checkbox]:checked+label:before {
font-weight: 300;
color: #f3f3f3;
line-height: 15px;
font-size: 14px;
content: "\2713";
}
.login-2 .login-inner-form input[type=checkbox],
input[type=radio] {
margin-top: 4px;
}
.login-2 .login-inner-form .checkbox a {
font-size: 14px;
color: #3afe;
float: right;
}
.btn-gradient {
background-image: linear-gradient(-225deg, #01c0c8 0%, #6B8DD6 48%, #8E37D7 100%);
color: #fff;
}
/** MEDIA **/
@media (max-width: 1200px) {
.login-box-2 {
margin: 0 70px 0 120px;
}
}
@media (max-width: 992px) {
.none-992 {
display: none;
}
.login-box-2 {
margin: 0 auto;
max-width: 400px;
}
.login-2 .login-inner-form .details {
padding: 30px;
}
.login-2 .pad-0 {
padding: 0;
}
}
.toast-header {
padding: .25rem .75rem;
}
.login-card {
box-shadow: 0 0 10px #ccc;
padding: 30px;
}
background: #fff none repeat scroll 0 0;
border:1px solid #eee;
box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, .03);
border-radius: 6px;
overflow: hidden;
color: #fff;
left: 20px;
position: absolute;
top: 115px;
background: #fafafa none repeat scroll 0 0;
color:#181818;
display: block;
font-size: 14px;
letter-spacing: 0;
padding: 17px 0;
text-align: center;
text-transform: uppercase;
list-style: outside none none;
margin: 0;
padding: 0;
margin-bottom:20px;
background: rgba(0, 0, 0, 0) url("https://s19.postimg.org/vq43s2wib/valid.png") no-repeat scroll 2px 6px;
color: green;
line-height: 1.29;
padding-left: 22px;
background: rgba(0, 0, 0, 0) url("https://s19.postimg.org/olmaj1p8z/invalid.png") no-repeat scroll 2px 6px;
color: red;
line-height: 1.29;
padding-left: 22px;