Updated register page

This commit is contained in:
Patrick Alvin Alcala 2025-09-26 17:33:42 +08:00
parent 640f02470f
commit 52ebeebe4d
2 changed files with 13 additions and 9 deletions

View file

@ -26,6 +26,8 @@
border-radius: 8px border-radius: 8px
background-color: color.adjust(#0D64E4, $blackness: 20%) background-color: color.adjust(#0D64E4, $blackness: 20%)
opacity: 0.6 opacity: 0.6
width: 100%
text-align: center
.filefield .filefield
display: flex display: flex

View file

@ -10,7 +10,7 @@ import bcrypt from 'bcryptjs'
export default () => { export default () => {
const API = import.meta.env.VITE_BACKEND 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 assessors = JSON.parse(sessionStorage.getItem('assessors')!)
const roles = ['ASSESSOR', 'APPROVER'] const roles = ['ASSESSOR', 'APPROVER']
@ -71,10 +71,12 @@ export default () => {
} }
const securePassword = async () => { const securePassword = async () => {
const salt = bcrypt.genSaltSync(9) // const salt = bcrypt.genSaltSync(9)
const hash = bcrypt.hashSync(password(), salt) // const hash = bcrypt.hashSync(password(), salt)
const sha = SHA1(hash) const firstHashing = SHA1(password())
setHashPassword(sha.toString()) const secondHashing = SHA3(firstHashing)
const thirdHashing = SHA1(secondHashing)
setHashPassword(thirdHashing.toString())
} }
const convertBase64 = (blob: Blob) => { const convertBase64 = (blob: Blob) => {
@ -137,7 +139,7 @@ export default () => {
<Padding top={2} left={0} right={0} bottom={0}> <Padding top={2} left={0} right={0} bottom={0}>
<Row> <Row>
<Box curved thickness={2} padding={2} color="#2f465cd7"> <Box curved thickness={2} padding={2} color="#2f465cd7" background="#04040642">
<Row> <Row>
<span class="box-title">Registration</span> <span class="box-title">Registration</span>
</Row> </Row>
@ -171,7 +173,7 @@ export default () => {
<Padding top={2} bottom={0} left={0} right={0}> <Padding top={2} bottom={0} left={0} right={0}>
<Row> <Row>
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} /> <Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
</Row> </Row>
</Padding> </Padding>
</Show> </Show>
@ -210,7 +212,7 @@ export default () => {
<Padding top={2} bottom={0} left={0} right={0}> <Padding top={2} bottom={0} left={0} right={0}>
<Row> <Row>
<Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} /> <Button edges="curved" design="bo-primary" label="Register" onClick={generateSignature} wide />
</Row> </Row>
</Padding> </Padding>
</Show> </Show>
@ -229,7 +231,7 @@ export default () => {
</Padding> </Padding>
</Page> </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}> <Padding top={1} bottom={1} left={4} right={4}>
<Column> <Column>
<Row> <Row>