Skip to content
Snippets Groups Projects
Unverified Commit 71001ce8 authored by Daniel Gultsch's avatar Daniel Gultsch
Browse files

fix quicksy registration

parent d4ca03c8
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ public class Plain extends SaslMechanism {
Preconditions.checkState(
this.state == State.INITIAL, "Calling getClientFirstMessage from invalid state");
this.state = State.AUTH_TEXT_SENT;
final String message = '\u0000' + account.getUsername() + '\u0000' + account.getPassword();
return getMessage(account.getUsername(), account.getPassword());
}
public static String getMessage(final String username, final String password) {
final String message = '\u0000' + username + '\u0000' + password;
return BaseEncoding.base64().encode(message.getBytes());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment