Updated register page
This commit is contained in:
parent
640f02470f
commit
52ebeebe4d
2 changed files with 13 additions and 9 deletions
|
|
@ -26,6 +26,8 @@
|
|||
border-radius: 8px
|
||||
background-color: color.adjust(#0D64E4, $blackness: 20%)
|
||||
opacity: 0.6
|
||||
width: 100%
|
||||
text-align: center
|
||||
|
||||
.filefield
|
||||
display: flex
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import bcrypt from 'bcryptjs'
|
|||
|
||||
export default () => {
|
||||
const API = import.meta.env.VITE_BACKEND
|
||||
const APPROVERNAME = 'ARCH. KHASHAYAR L. TOGHYANI'
|
||||
const APPROVERNAME = import.meta.env.VITE_HEAD
|
||||
const assessors = JSON.parse(sessionStorage.getItem('assessors')!)
|
||||
const roles = ['ASSESSOR', 'APPROVER']
|
||||
|
||||
|
|
@ -71,10 +71,12 @@ export default () => {
|
|||
}
|
||||
|
||||
const securePassword = async () => {
|
||||
const salt = bcrypt.genSaltSync(9)
|
||||
const hash = bcrypt.hashSync(password(), salt)
|
||||
const sha = SHA1(hash)
|
||||
setHashPassword(sha.toString())
|
||||
// const salt = bcrypt.genSaltSync(9)
|
||||
// const hash = bcrypt.hashSync(password(), salt)
|
||||
const firstHashing = SHA1(password())
|
||||
const secondHashing = SHA3(firstHashing)
|
||||
const thirdHashing = SHA1(secondHashing)
|
||||
setHashPassword(thirdHashing.toString())
|
||||
}
|
||||
|
||||
const convertBase64 = (blob: Blob) => {
|
||||
|
|
@ -137,7 +139,7 @@ export default () => {
|
|||
|
||||
<Padding top={2} left={0} right={0} bottom={0}>
|
||||
<Row>
|
||||
<Box curved thickness={2} padding={2} color="#2f465cd7">
|
||||
<Box curved thickness={2} padding={2} color="#2f465cd7" background="#04040642">
|
||||
<Row>
|
||||
<span class="box-title">Registration</span>
|
||||
</Row>
|
||||
|
|
@ -171,7 +173,7 @@ export default () => {
|
|||
|
||||
<Padding top={2} bottom={0} left={0} right={0}>
|
||||
<Row>
|
||||
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} />
|
||||
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
|
||||
</Row>
|
||||
</Padding>
|
||||
</Show>
|
||||
|
|
@ -210,7 +212,7 @@ export default () => {
|
|||
|
||||
<Padding top={2} bottom={0} left={0} right={0}>
|
||||
<Row>
|
||||
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} />
|
||||
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
|
||||
</Row>
|
||||
</Padding>
|
||||
</Show>
|
||||
|
|
@ -229,7 +231,7 @@ export default () => {
|
|||
</Padding>
|
||||
</Page>
|
||||
|
||||
<Modal trigger={saved()} background="#ffffffff" color="#000000e4" opacity={0.4}>
|
||||
<Modal trigger={saved()} background="#ffffffff" color="#000000e4" opacity={0.6}>
|
||||
<Padding top={1} bottom={1} left={4} right={4}>
|
||||
<Column>
|
||||
<Row>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue