diff --git a/src/pages/RegisterPage/Register.sass b/src/pages/RegisterPage/Register.sass
index 94e8415..e4f1a10 100644
--- a/src/pages/RegisterPage/Register.sass
+++ b/src/pages/RegisterPage/Register.sass
@@ -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
diff --git a/src/pages/RegisterPage/Register.tsx b/src/pages/RegisterPage/Register.tsx
index 8a88bb2..4a2ea85 100644
--- a/src/pages/RegisterPage/Register.tsx
+++ b/src/pages/RegisterPage/Register.tsx
@@ -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 () => {
-
+
Registration
@@ -171,7 +173,7 @@ export default () => {
-
+
@@ -210,7 +212,7 @@ export default () => {
-
+
@@ -229,7 +231,7 @@ export default () => {
-
+