Changeset 416


Ignore:
Timestamp:
Feb 27, 2023, 9:38:28 PM (22 months ago)
Author:
alloc
Message:

RegisterUser no longer uses a redirect on successful user creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebAPI/APIs/RegisterUser.cs

    r413 r416  
    22using System.Collections.Generic;
    33using System.Net;
     4using System.Text;
    45using System.Text.RegularExpressions;
    56using JetBrains.Annotations;
     
    8586                        string remoteEndpointString = _context.Request.RemoteEndPoint!.ToString ();
    8687                        SessionHandler.HandleUserIdLogin (ParentWeb.ConnectionHandler, _context, remoteEndpointString, SessionHandler.userPassLoginName,
    87                                 SessionHandler.userPassErrorPage, username, regData.PlatformUserId, regData.CrossPlatformUserId);
     88                                SessionHandler.userPassErrorPage, username, regData.PlatformUserId, regData.CrossPlatformUserId, false);
     89
     90                        _context.Response.StatusCode = (int)HttpStatusCode.Created;
     91                        _context.Response.ContentType = WebUtils.MimePlain;
     92                        _context.Response.ContentEncoding = Encoding.UTF8;
     93                        _context.Response.ContentLength64 = 0;
     94                        // _context.Response.OutputStream.Write (jsonData.Array!, 0, jsonData.Count);
    8895                }
    8996
Note: See TracChangeset for help on using the changeset viewer.