What is your workflow for password reset email for web?
D
Dylan Hunt
started a topic
almost 6 years ago
I have to let my privacy freaks play my game, so I want legacy login as well. What's best (easiest) practice to allow password reset via the web?
I hate to compare PlayFab, but they have a player.SendPasswordResetEmail api call, which... just makes sense. Otherwise it's a really huge system to make a secure, password reset email.
We don't store user email addresses by default so we don't have a call for that but we do have a method for doing this (by first setting a users email to script data on registration), the basics of this are set up in a test project. I can add you to this if you like to see how it works. Just let me know and I'll send you the details.
Thanks,
Liam
R
Richard Teemal
said
almost 6 years ago
Firstly, let me thank Dylan for that question. I am coming from PlayerIO and they too have a simple password reset system. I do not believe that we two are going to be the only devs with this question so perhaps in future, it might be added as a tutorial, or better yet incorporated within the authentication system?
Can you also add me to the test project?
Thank you, Richard.
Customer Support
said
almost 6 years ago
Hi Richard,
A guide for how to handle this can be found in our documentation located here. If you have any further questions please don't hesitate to let us know.
Dylan Hunt
I have to let my privacy freaks play my game, so I want legacy login as well. What's best (easiest) practice to allow password reset via the web?
I hate to compare PlayFab, but they have a player.SendPasswordResetEmail api call, which... just makes sense. Otherwise it's a really huge system to make a secure, password reset email.
What you are looking for is something like this..
if(Spark.getData().scriptData)
{
Spark.getPlayer().setScriptData("email", Spark.getData().scriptData["email"]);
}
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Dylan,
We don't store user email addresses by default so we don't have a call for that but we do have a method for doing this (by first setting a users email to script data on registration), the basics of this are set up in a test project. I can add you to this if you like to see how it works. Just let me know and I'll send you the details.
Thanks,
Liam
Richard Teemal
Can you also add me to the test project?
Thank you,
Richard.
Customer Support
Hi Richard,
A guide for how to handle this can be found in our documentation located here. If you have any further questions please don't hesitate to let us know.
Thanks,
Liam
ahsan muzaheed
in test harness i am trying this:
but it is not entering inside of this if(Spark.data.scriptData){}
somehow it always considering "(Spark.data.scriptData)" as invalid !!!!!!!!
can u provide some example code for testing in test harness
ahsan muzaheed
using that in test harness , i am getting null inside of Spark.data.scriptData .
As a result it is skipping whole if(Spark.data.scriptData) {} block.
can u provide some test harness example?
Customer Support
What you are looking for is something like this..
if(Spark.getData().scriptData)
{
Spark.getPlayer().setScriptData("email", Spark.getData().scriptData["email"]);
}
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics