internal/auth/user.go

Summary

Maintainability
A
1 hr
Test Coverage

Function insertStudentIntoDB has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func insertStudentIntoDB(db *sql.DB, studentID string, fName string, lName string, studentYear string) {
Severity: Minor
Found in internal/auth/user.go - About 35 mins to fix

    Function UserAuthenticationHandler has 5 return statements (exceeds 4 allowed).
    Open

    func UserAuthenticationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
    
        // Determine if the user is already logged in
        _, notLoggedIn := sessions.ParseSessions(r, w)
        if notLoggedIn == nil {
    Severity: Major
    Found in internal/auth/user.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status