src/fursvp.api/Controllers/AuthController.cs
/// <summary>
/// Instantly logs in a tester with the email address provided. For Debugging only.
/// </summary>
/// <param name="emailAddress">The email address to log in as.</param>
/// <returns>The generated token.</returns>
Instantly logs in a tester with the email address provided. For Debugging only.
Instantly logs in a tester with the email address provided . For Debugging only .
[ServiceFilter(typeof(DebugModeOnlyFilter))]
        [HttpPost]
        [Route("debug")]
        public IActionResult DebugAuth([FromBody]string emailAddress)
        {
            var token = CreateVerificationToken(emailAddress, out var sessionId);
            MemoryCache.Set("SessionId:" + sessionId, true);
            return Ok(token);
        }
[ ServiceFilter ( typeof ( DebugModeOnlyFilter ) ) ] [ HttpPost ] [ Route ( " " ) ] public IActionResult DebugAuth ( [ FromBody ] string emailAddress ) { var token = CreateVerificationToken ( emailAddress , out var sessionId ) ; MemoryCache . Set ( " " + sessionId , true ) ; return Ok ( token ) ; }
Instantly logs in a tester with the email address provided.
Instantly logs in a tester with the email address provided .
// authentication successful so generate jwt token
The generated token.
The generated token .
string
[FromBody]
emailAddress
The email address to log in as.
The email address to log in as .