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 { useNavigate } from '@solidjs/router'
|
||||
import { SHA1, SHA3 } from 'crypto-js'
|
||||
import { MD5, SHA1, SHA384 } from 'crypto-js'
|
||||
import dayjs from 'dayjs'
|
||||
import { IoChevronBack } from 'solid-icons/io'
|
||||
import { createEffect, createSignal } from 'solid-js'
|
||||
|
|
@ -42,8 +42,9 @@ export default () => {
|
|||
globalId = 276
|
||||
setName(APPROVERNAME)
|
||||
}
|
||||
const hash = SHA3(globalId.toString())
|
||||
setSignature(`Use OCBO e-Sign Validator - scanid=${hash.toString()}`)
|
||||
const hash = SHA384(globalId.toString())
|
||||
const secondHash = MD5(hash.toString().substring(9))
|
||||
setSignature(`Use OCBO e-Sign Validator - scanid=${secondHash.toString().substring(24)}`)
|
||||
|
||||
try {
|
||||
register()
|
||||
|
|
@ -77,8 +78,8 @@ export default () => {
|
|||
|
||||
const securePassword = async () => {
|
||||
const firstHashing = SHA1(password())
|
||||
const secondHashing = SHA3(firstHashing)
|
||||
const thirdHashing = SHA1(secondHashing)
|
||||
const secondHashing = SHA384(firstHashing.toString())
|
||||
const thirdHashing = SHA1(secondHashing.toString())
|
||||
globalHashPassword = thirdHashing.toString()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue