We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10b5b8e + 2ef3855 commit 073cbc6Copy full SHA for 073cbc6
1 file changed
index.js
@@ -145,9 +145,9 @@ studio.protocol = (function(ProtoBuf) {
145
146
this.sendAuthRequest = function(lastAttemptErrorMessage = ""){
147
authenticate(lastAttemptErrorMessage).then(function(authRequest){
148
- var credentials = new TextEncoder().encode(authRequest.userID + ':' + authRequest.password); // encode to utf-8 byte array
+ var credentials = new TextEncoder().encode(authRequest.userID.toLowerCase() + ':' + authRequest.password); // encode to utf-8 byte array
149
let authReq = new obj.AuthRequest();
150
- authReq.user_id = authRequest.userID;
+ authReq.user_id = authRequest.userID.toLowerCase();
151
var colon = new Int8Array([':'.charCodeAt(0)]);
152
crypto.subtle.digest('SHA-256', credentials.buffer)
153
.then(function(digest) {
0 commit comments