Updated register page
This commit is contained in:
parent
2837f06542
commit
f3b4ceaa1a
1 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { FileField } from '@kobalte/core/file-field'
|
import { FileField } from '@kobalte/core/file-field'
|
||||||
import { useNavigate } from '@solidjs/router'
|
import { useNavigate } from '@solidjs/router'
|
||||||
import { SHA1, SHA3 } from 'crypto-js'
|
import { MD5, SHA1, SHA384 } from 'crypto-js'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { IoChevronBack } from 'solid-icons/io'
|
import { IoChevronBack } from 'solid-icons/io'
|
||||||
import { createEffect, createSignal } from 'solid-js'
|
import { createEffect, createSignal } from 'solid-js'
|
||||||
|
|
@ -42,8 +42,9 @@ export default () => {
|
||||||
globalId = 276
|
globalId = 276
|
||||||
setName(APPROVERNAME)
|
setName(APPROVERNAME)
|
||||||
}
|
}
|
||||||
const hash = SHA3(globalId.toString())
|
const hash = SHA384(globalId.toString())
|
||||||
setSignature(`Use OCBO e-Sign Validator - scanid=${hash.toString()}`)
|
const secondHash = MD5(hash.toString().substring(9))
|
||||||
|
setSignature(`Use OCBO e-Sign Validator - scanid=${secondHash.toString().substring(24)}`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
register()
|
register()
|
||||||
|
|
@ -77,8 +78,8 @@ export default () => {
|
||||||
|
|
||||||
const securePassword = async () => {
|
const securePassword = async () => {
|
||||||
const firstHashing = SHA1(password())
|
const firstHashing = SHA1(password())
|
||||||
const secondHashing = SHA3(firstHashing)
|
const secondHashing = SHA384(firstHashing.toString())
|
||||||
const thirdHashing = SHA1(secondHashing)
|
const thirdHashing = SHA1(secondHashing.toString())
|
||||||
globalHashPassword = thirdHashing.toString()
|
globalHashPassword = thirdHashing.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue