diff --git a/LaDOSE.Src/LaDOSE.Api/Controllers/UsersController.cs b/LaDOSE.Src/LaDOSE.Api/Controllers/UsersController.cs index a356ff4..67e4db0 100644 --- a/LaDOSE.Src/LaDOSE.Api/Controllers/UsersController.cs +++ b/LaDOSE.Src/LaDOSE.Api/Controllers/UsersController.cs @@ -49,7 +49,9 @@ namespace LaDOSE.Api.Controllers { Subject = new ClaimsIdentity(new Claim[] { - new Claim(ClaimTypes.Name, user.Id.ToString()) + new Claim(ClaimTypes.Name, user.Id.ToString()), + + }), Expires = DateTime.UtcNow.AddMinutes(16), SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature) diff --git a/LaDOSE.Src/LaDOSE.DiscordBot/Command/Todo.cs b/LaDOSE.Src/LaDOSE.DiscordBot/Command/Todo.cs index 99c8cd1..fb291da 100644 --- a/LaDOSE.Src/LaDOSE.DiscordBot/Command/Todo.cs +++ b/LaDOSE.Src/LaDOSE.DiscordBot/Command/Todo.cs @@ -17,7 +17,8 @@ namespace LaDOSE.DiscordBot.Command dep = d; } - [Command("todo")] + [Command("todo"),Description("Todo List")] + public async Task TodoAsync(CommandContext ctx, string command,params string[] todo) { await ctx.TriggerTypingAsync(); @@ -123,7 +124,18 @@ namespace LaDOSE.DiscordBot.Command return; } break; + case "HELP": + + await ctx.RespondAsync($"Todo:\n" + + $"-Add : Add todo\n" + + $"-Del : Delete todo\n" + + $"-V : check todo\n" + + $"-X : uncheck todo\n"); + break; + default: + await ctx.RespondAsync($"Need some help ? !todo help"); + break; } //await ctx.RespondAsync($"command : {command}, todo: {todo} "); } diff --git a/LaDOSE.Src/LaDOSE.Service/Service/UserService.cs b/LaDOSE.Src/LaDOSE.Service/Service/UserService.cs index 4088d47..115ee68 100644 --- a/LaDOSE.Src/LaDOSE.Service/Service/UserService.cs +++ b/LaDOSE.Src/LaDOSE.Service/Service/UserService.cs @@ -30,7 +30,7 @@ namespace LaDOSE.Business.Service // check if password is correct if (!VerifyPasswordHash(password, user.PasswordHash, user.PasswordSalt)) return null; - + // authentication successful return user; } diff --git a/LaDOSE.Src/LaDOSE.Service/Service/WordPressService.cs b/LaDOSE.Src/LaDOSE.Service/Service/WordPressService.cs index aa68316..2f3adae 100644 --- a/LaDOSE.Src/LaDOSE.Service/Service/WordPressService.cs +++ b/LaDOSE.Src/LaDOSE.Service/Service/WordPressService.cs @@ -109,7 +109,7 @@ namespace LaDOSE.Business.Service var remove = currentEvent.Date?.ToString("Mdyy"); var url = $"{remove}{selectedGame.Id}"; var selectedEvent = FormatCurrentEventName(currentEvent.Name); - var name = $"[{eventDate}] LaDOSE.Net - {selectedEvent} - {selectedGame.Name}"; + var name = $"[{eventDate}] LaDOSE.net - {selectedEvent} - {selectedGame.Name}"; var tournament = _challongeProvider.CreateTournament(name, url).Result;