Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API key signup authentication #505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion addons/godot_uro/godot_uro_api.gd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func register_async(
"user[email]": p_email,
"user[password]": p_password,
"user[password_confirmation]": p_password_confirmation,
"user[email_notifications]": uro_api_const.bool_to_string(p_email_notifications)
"user[email_notifications]": uro_api_const.bool_to_string(p_email_notifications),
"apiKey": godot_uro_helper_const.SIGNUP_API_KEY
}

var result = await (requester.request(
Expand Down
1 change: 1 addition & 0 deletions addons/godot_uro/godot_uro_helper.gd
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const DEFAULT_ACCOUNT_USERNAME = "UNKNOWN_USERNAME"
const DEFAULT_ACCOUNT_DISPLAY_NAME = "UNKNOWN_DISPLAY_NAME"
const UNTITLED_SHARD = "UNTITLED_SHARD"
const UNKNOWN_MAP = "UNKNOWN_MAP"
const SIGNUP_API_KEY = "eNoZ4kXHgT0z9ZTYGsq7eE0rQYvR6YBi"


static func get_string_for_requester_code(p_requester_code: int) -> String:
Expand Down