Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Password reset placeholder, website title change, finished placeholde…
…r links in footer
  • Loading branch information
nic21003 committed Nov 21, 2023
1 parent 18a894f commit 7f46739
Show file tree
Hide file tree
Showing 4 changed files with 2,354 additions and 2,357 deletions.
10 changes: 7 additions & 3 deletions StudentFunctions.py
Expand Up @@ -2,16 +2,18 @@ from boto3 import resource
from boto3.dynamodb.conditions import Attr, Key
import math
import random
import hashlib

student_table = resource('dynamodb').Table('Students')

def createStudent(studentID, studentPWD, enrolledCourses = []):
def createStudent(studentID, studentPWD, enrolledCourses = [], studentEmail="None"):
studentCreation = student_table.put_item(
Item = {
'StudentId' : studentID,
'StudentPWD' : studentPWD,
'EnrolledCourses' : enrolledCourses,
'AuthToken' : None
'AuthToken' : None,
'StudentEmail' : studentEmail
}
)

Expand All @@ -20,4 +22,6 @@ def createStudent(studentID, studentPWD, enrolledCourses = []):


if __name__ == "__main__":
createStudent("testUser", "myNewPassword")

hashed_password = hashlib.sha256("myNewPassword".encode()).hexdigest()
createStudent("testUser", hashed_password, [["STAT3025Q", "003L"], ["COMM 3310W", "001"]], "couillard@uconn.edu")
2 changes: 1 addition & 1 deletion class_registration_app/index.html
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>Course Registration</title>
</head>
<body>
<div id="app"></div>
Expand Down

0 comments on commit 7f46739

Please sign in to comment.