Merge pull request #3833 from JurgenKuyper/v3.0

added switch on publicURL in webregister message
This commit is contained in:
mikeprimm 2022-08-29 08:29:37 -05:00 committed by GitHub
commit 66fe5d4a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ public class WebAuthManager {
private static final String PWDHASH_PREFIX = "hash.";
private Random rnd = new Random();
private DynmapCore core;
private String publicRegistrationURL;
public WebAuthManager(DynmapCore core) {
this.core = core;
@ -202,7 +203,8 @@ public class WebAuthManager {
pending_registrations.put(uid.toLowerCase(), regkey.toLowerCase());
sender.sendMessage("Registration pending for user ID: " + uid);
sender.sendMessage("Registration code: " + regkey);
sender.sendMessage("Enter ID and code on registration web page (login.html) to complete registration");
publicRegistrationURL = core.configuration.getString("publicURL", "index.html");
sender.sendMessage("Enter ID and code on registration web page (" + publicRegistrationURL.toString() + ") to complete registration");
if(other) {
DynmapPlayer p = core.getServer().getPlayer(uid);
if(p != null) {