bug fixes for 1.19

This commit is contained in:
SowinskiBraeden committed 2023-01-07 17:13:08 -08:00
1 parent 807758d924
commit 4c4bad4be0
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -275,7 +275,7 @@ func Enroll(c *fiber.Ctx) error {
student.AccountData.Alerted = false student.AccountData.Alerted = false
student.AccountData.Attempts = 0 student.AccountData.Attempts = 0
student.AccountData.Password = data["password1"].(string) student.AccountData.Password = student.HashPassword(data["password1"].(string))
student.AccountData.TempPassword = false student.AccountData.TempPassword = false
var sid string var sid string
@@ -444,7 +444,7 @@ func RegisterTeacher(c *fiber.Ctx) error {
teacher.AccountData.AccountDisabled = false teacher.AccountData.AccountDisabled = false
teacher.AccountData.Attempts = 0 teacher.AccountData.Attempts = 0
teacher.AccountData.Password = data["password"].(string) teacher.AccountData.Password = teacher.HashPassword(data["password1"].(string))
teacher.AccountData.TempPassword = false teacher.AccountData.TempPassword = false
var tid string var tid string
@@ -564,7 +564,7 @@ func CreateAdmin(c *fiber.Ctx) error {
} }
admin.SchoolEmail = schoolEmail admin.SchoolEmail = schoolEmail
admin.Password = data["password1"].(string) admin.Password = admin.HashPassword(data["password1"].(string))
admin.TempPassword = false admin.TempPassword = false
var aid string var aid string
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/cors"
) )
const version string = "\nv1.1.2-Beta" const version string = "\nv1.1.3-Beta"
func main() { func main() {
fmt.Println(version) fmt.Println(version)