Skip to content

Commit

Permalink
username suggestion improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 20, 2024
1 parent 25ca353 commit c386304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SwipetorApp/Areas/Api/AuthApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public IActionResult SuggestUsernames()
using var db = dbProvider.Create();

// Fetch 10 random words
var randomWords = db.EnglishWords
var randomWords = db.EnglishWords.Where(w => w.Word.Length >= 3)
.OrderBy(w => Guid.NewGuid())
.Take(10)
.Select(w => w.Word)
Expand Down
2 changes: 1 addition & 1 deletion SwipetorApp/Areas/HostMaster/ImportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace SwipetorApp.Areas.HostMaster;

[Area(AreaNames.Admin)]
[Area(AreaNames.HostMaster)]
[UserRoleAuth(UserRole.HostMaster)]
public class ImportController(IDbProvider dbProvider, ILogger<ImportController> logger) : Controller
{
Expand Down

0 comments on commit c386304

Please sign in to comment.