mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-04 07:09:58 +00:00
Rename Game authentication methods as such
This commit is contained in:
parent
21fd62ac1c
commit
ff823b5ae6
14 changed files with 56 additions and 48 deletions
|
@ -29,7 +29,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
[HttpPost("uploadPhoto")]
|
||||
public async Task<IActionResult> UploadPhoto()
|
||||
{
|
||||
User? user = await this.database.UserFromRequest(this.Request);
|
||||
User? user = await this.database.UserFromGameRequest(this.Request);
|
||||
if (user == null) return this.StatusCode(403, "");
|
||||
|
||||
this.Request.Body.Position = 0;
|
||||
|
@ -120,7 +120,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
[HttpPost("deletePhoto/{id:int}")]
|
||||
public async Task<IActionResult> DeletePhoto(int id)
|
||||
{
|
||||
User? user = await this.database.UserFromRequest(this.Request);
|
||||
User? user = await this.database.UserFromGameRequest(this.Request);
|
||||
if (user == null) return this.StatusCode(403, "");
|
||||
|
||||
Photo? photo = await this.database.Photos.FirstOrDefaultAsync(p => p.PhotoId == id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue