mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
added switch on publicURL in webregister message
This commit is contained in:
parent
5d867239b2
commit
adfe0471e3
@ -28,6 +28,7 @@ public class WebAuthManager {
|
|||||||
private static final String PWDHASH_PREFIX = "hash.";
|
private static final String PWDHASH_PREFIX = "hash.";
|
||||||
private Random rnd = new Random();
|
private Random rnd = new Random();
|
||||||
private DynmapCore core;
|
private DynmapCore core;
|
||||||
|
private String publicRegistrationURL;
|
||||||
|
|
||||||
public WebAuthManager(DynmapCore core) {
|
public WebAuthManager(DynmapCore core) {
|
||||||
this.core = core;
|
this.core = core;
|
||||||
@ -202,7 +203,8 @@ public class WebAuthManager {
|
|||||||
pending_registrations.put(uid.toLowerCase(), regkey.toLowerCase());
|
pending_registrations.put(uid.toLowerCase(), regkey.toLowerCase());
|
||||||
sender.sendMessage("Registration pending for user ID: " + uid);
|
sender.sendMessage("Registration pending for user ID: " + uid);
|
||||||
sender.sendMessage("Registration code: " + regkey);
|
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) {
|
if(other) {
|
||||||
DynmapPlayer p = core.getServer().getPlayer(uid);
|
DynmapPlayer p = core.getServer().getPlayer(uid);
|
||||||
if(p != null) {
|
if(p != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user