Skip to content

Commit db5b0e0

Browse files
[SDK-901] Feature/wizard signup fix (#275)
- remove duplicate call of signup function - cleanup unused property
1 parent 7802503 commit db5b0e0

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

Runtime/AvatarCreator/Scripts/Managers/AuthManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Threading.Tasks;
33
using ReadyPlayerMe.Core;
44

@@ -70,7 +70,7 @@ public static async Task<bool> LoginWithCode(string otp, string userIdToMerge =
7070

7171
public static async void Signup(string email)
7272
{
73-
try
73+
try
7474
{
7575
await AuthAPIRequests.Signup(email, userSession.Id);
7676
}

Runtime/Core/Scripts/Utils/WebRequestDispatcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public enum HttpMethod
2020
public class WebRequestDispatcher
2121
{
2222
private const string REQUEST_CANCEL_ERROR = "Request was cancelled";
23-
private const string APP_ID = "X-APP-ID";
2423
public int Timeout = 240;
2524

2625
public Action<float> ProgressChanged;

Samples~/AvatarCreatorSamples/AvatarCreatorWizard/Scripts/UI/SelectionScreens/AvatarCreatorSelection.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ private void Start()
4343
public override void ActivateState()
4444
{
4545
saveButton.onClick.AddListener(OnSaveButton);
46-
signupElement.OnSendEmail.AddListener(OnSendEmail);
4746
signupElement.OnContinueWithoutSignup.AddListener(Save);
4847
categoryUICreator.OnCategorySelected += OnCategorySelected;
4948
Setup();
@@ -52,7 +51,6 @@ public override void ActivateState()
5251
public override void DeactivateState()
5352
{
5453
saveButton.onClick.RemoveListener(OnSaveButton);
55-
signupElement.OnSendEmail.RemoveListener(OnSendEmail);
5654
signupElement.OnContinueWithoutSignup.RemoveListener(Save);
5755
categoryUICreator.OnCategorySelected -= OnCategorySelected;
5856
Cleanup();
@@ -252,7 +250,6 @@ private void OnSaveButton()
252250

253251
private void OnSendEmail(string email)
254252
{
255-
AuthManager.Signup(email);
256253
Save();
257254
}
258255

0 commit comments

Comments
 (0)