mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Keep registerClient for older clients. Rename the new version to registerClientWithPassword. Add an error message on NoSuchMethodException so that this kind of version incompatibility can be handled and informed to user.
This commit is contained in:
parent
51b4979f71
commit
787f4f010a
3 changed files with 23 additions and 5 deletions
|
|
@ -56,7 +56,11 @@ import mage.view.UserView;
|
|||
public interface MageServer {
|
||||
|
||||
// connection methods
|
||||
boolean registerClient(String userName, String password, String sessionId, MageVersion version) throws MageException;
|
||||
// DEPRECATED - Use registerClientWithPassword instead. This is kept for older clients.
|
||||
// This can be deleted once users transitioned to newer clients (1.4.6v1 and later).
|
||||
boolean registerClient(String userName, String sessionId, MageVersion version) throws MageException;
|
||||
|
||||
boolean registerClientWithPassword(String userName, String password, String sessionId, MageVersion version) throws MageException;
|
||||
|
||||
boolean registerAdmin(String password, String sessionId, MageVersion version) throws MageException;
|
||||
// Not used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue