mbkauthe 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +2 -2
- package/README.md +128 -7
- package/docs/api.md +48 -1
- package/docs/db.md +53 -15
- package/{env.md → docs/env.md} +76 -2
- package/index.js +9 -29
- package/lib/config.js +199 -0
- package/lib/main.js +234 -161
- package/lib/pool.js +1 -25
- package/lib/validateSessionAndRole.js +19 -131
- package/package.json +2 -2
- package/public/bg.webp +0 -0
- package/public/icon.ico +0 -0
- package/public/icon.svg +5 -0
- package/views/2fa.handlebars +21 -41
- package/views/Error/dError.handlebars +7 -35
- package/views/backgroundElements.handlebars +6 -0
- package/views/head.handlebars +14 -0
- package/views/header.handlebars +15 -0
- package/views/info.handlebars +8 -29
- package/views/loginmbkauthe.handlebars +5 -40
- package/views/sharedStyles.handlebars +112 -1
- package/views/versionInfo.handlebars +6 -0
- package/public/bg.avif +0 -0
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
left: 0;
|
|
99
99
|
width: 100%;
|
|
100
100
|
height: 100%;
|
|
101
|
-
background: url(/mbkauthe/bg.
|
|
101
|
+
background: url(/mbkauthe/bg.webp) center/cover no-repeat;
|
|
102
102
|
opacity: .1;
|
|
103
103
|
z-index: 0;
|
|
104
104
|
}
|
|
@@ -142,6 +142,15 @@
|
|
|
142
142
|
border-radius: 2px;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.login-subtitle {
|
|
146
|
+
text-align: center;
|
|
147
|
+
color: var(--text-light);
|
|
148
|
+
font-size: 0.95rem;
|
|
149
|
+
margin-top: -1rem;
|
|
150
|
+
margin-bottom: 2rem;
|
|
151
|
+
line-height: 1.5;
|
|
152
|
+
}
|
|
153
|
+
|
|
145
154
|
.form-group {
|
|
146
155
|
position: relative;
|
|
147
156
|
margin-bottom: 1.5rem;
|
|
@@ -165,6 +174,14 @@
|
|
|
165
174
|
box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
|
|
166
175
|
}
|
|
167
176
|
|
|
177
|
+
.form-input[type="text"][name="token"] {
|
|
178
|
+
font-size: 1.5rem;
|
|
179
|
+
letter-spacing: 0.5rem;
|
|
180
|
+
text-align: center;
|
|
181
|
+
font-weight: 600;
|
|
182
|
+
font-family: 'Courier New', monospace;
|
|
183
|
+
}
|
|
184
|
+
|
|
168
185
|
.form-label {
|
|
169
186
|
position: absolute;
|
|
170
187
|
top: 15px;
|
|
@@ -432,6 +449,100 @@
|
|
|
432
449
|
color: var(--light);
|
|
433
450
|
}
|
|
434
451
|
|
|
452
|
+
.trust-device-container {
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
justify-content: space-between;
|
|
456
|
+
width: 100%;
|
|
457
|
+
margin: 1.5rem 0;
|
|
458
|
+
padding: 1rem;
|
|
459
|
+
background: rgba(0, 184, 148, 0.05);
|
|
460
|
+
border: 1px solid rgba(0, 184, 148, 0.2);
|
|
461
|
+
border-radius: var(--border-radius);
|
|
462
|
+
transition: var(--transition);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.trust-device-container:hover {
|
|
466
|
+
background: rgba(0, 184, 148, 0.08);
|
|
467
|
+
border-color: rgba(0, 184, 148, 0.3);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.trust-device-label {
|
|
471
|
+
display: flex;
|
|
472
|
+
align-items: center;
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
flex: 1;
|
|
475
|
+
gap: 12px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.trust-device-checkbox {
|
|
479
|
+
appearance: none;
|
|
480
|
+
-webkit-appearance: none;
|
|
481
|
+
width: 20px;
|
|
482
|
+
height: 20px;
|
|
483
|
+
background: rgba(0, 0, 0, .3);
|
|
484
|
+
border: 2px solid rgba(0, 184, 148, 0.4);
|
|
485
|
+
border-radius: 5px;
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
position: relative;
|
|
488
|
+
transition: var(--transition);
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.trust-device-checkbox:hover {
|
|
493
|
+
border-color: var(--accent);
|
|
494
|
+
background: rgba(0, 184, 148, 0.1);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.trust-device-checkbox:checked {
|
|
498
|
+
background-color: var(--accent);
|
|
499
|
+
border-color: var(--accent);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.trust-device-checkbox:checked::after {
|
|
503
|
+
content: '\f00c';
|
|
504
|
+
font-family: 'Font Awesome 6 Free';
|
|
505
|
+
font-weight: 900;
|
|
506
|
+
position: absolute;
|
|
507
|
+
top: 50%;
|
|
508
|
+
left: 50%;
|
|
509
|
+
transform: translate(-50%, -50%);
|
|
510
|
+
color: var(--dark);
|
|
511
|
+
font-size: 11px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.checkbox-custom {
|
|
515
|
+
display: none;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.checkbox-text {
|
|
519
|
+
color: var(--text);
|
|
520
|
+
font-size: 0.95rem;
|
|
521
|
+
font-weight: 500;
|
|
522
|
+
transition: var(--transition);
|
|
523
|
+
user-select: none;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.trust-device-label:hover .checkbox-text {
|
|
527
|
+
color: var(--light);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.trust-device-info {
|
|
531
|
+
color: var(--accent);
|
|
532
|
+
cursor: pointer;
|
|
533
|
+
font-size: 1.1rem;
|
|
534
|
+
transition: var(--transition);
|
|
535
|
+
padding: 0.5rem;
|
|
536
|
+
border-radius: 50%;
|
|
537
|
+
flex-shrink: 0;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.trust-device-info:hover {
|
|
541
|
+
color: var(--light);
|
|
542
|
+
background: rgba(0, 184, 148, 0.15);
|
|
543
|
+
transform: scale(1.1);
|
|
544
|
+
}
|
|
545
|
+
|
|
435
546
|
.WarningboxInfo {
|
|
436
547
|
background: rgba(255, 209, 102, 0.1);
|
|
437
548
|
border: 1px solid var(--warning);
|
package/public/bg.avif
DELETED
|
Binary file
|