Skip to content

Commit

Permalink
Update sprout.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 23, 2023
1 parent d306930 commit cd7972c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/sprout.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ document.getElementById("login_form").addEventListener("submit", async function
//let userNameExists = await testUserName(firstName.slice(0,1).toLowerCase() + lastName.toLowerCase() + month + year);
//console.log("userNameExists = " + userNameExists);

let username = await generateUsername(userNameExists, firstName, lastName, month, day, year);
let username = await generateUsername(firstName, lastName, month, day, year);
console.log("username = " + username);

const newUser = {
Expand Down Expand Up @@ -165,7 +165,7 @@ document.getElementById("login_form").addEventListener("submit", async function
return true;
});

async function generateUsername(userNameExists, firstName, lastName, month, day, year){
async function generateUsername(firstName, lastName, month, day, year){
let username = "TBD";
let userCheck = await testUserName(firstName.slice(0,1).toLowerCase() + lastName.toLowerCase() + month + year);
let userCount = 0;
Expand Down

0 comments on commit cd7972c

Please sign in to comment.