update/set-login-block

This commit is contained in:
SowinskiBraeden committed 2022-01-14 22:54:45 -08:00
1 parent ee7ab8eff9
commit 17ceb974ff
1 file changed
+6 -1
+6 -1
View File
@@ -97,11 +97,16 @@ func Enroll(c *fiber.Ctx) error {
student.SchoolEmail = student.GenerateSchoolEmail() student.SchoolEmail = student.GenerateSchoolEmail()
// Disable login block
student.AccountDisabled = false
student.Attempts = 0
// Generate temporary password
tempPass := student.GeneratePassword(12, 1, 1, 1) tempPass := student.GeneratePassword(12, 1, 1, 1)
student.Password = student.HashPassword(tempPass) student.Password = student.HashPassword(tempPass)
student.TempPassword = true student.TempPassword = true
// Send student personal email temp password
// Send student personal email temp password
smtpHost := "smpt.gmail.com" smtpHost := "smpt.gmail.com"
smtpPort := "587" smtpPort := "587"