fixes #11047 Switches Hall query to use lowercase name

This commit is contained in:
Randi Miller
2019-03-17 04:00:50 -04:00
parent c7309ae179
commit e083df64e4
3 changed files with 16 additions and 4 deletions

View File

@@ -13,8 +13,8 @@ import * as Tasks from '../../../../website/server/models/task';
// parameter, such as the number of wolf eggs the user has,
// , you can do so by passing in the full path as a string:
// { 'items.eggs.Wolf': 10 }
export async function generateUser (update = {}) {
let username = (Date.now() + generateUUID()).substring(0, 20);
export async function generateUser (update = {}, manualUsername = null) {
let username = manualUsername || (Date.now() + generateUUID()).substring(0, 20);
let password = 'password';
let email = `${username}@example.com`;