Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SignUpValidation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = async function (context, req) {
// parse Basic Auth username and password
var header = req.headers["authorization"] || "", // get the header
token = header.split(/\s+/).pop() || "", // and the encoded auth token
auth = new Buffer.from(token, "base64").toString(), // convert from base64
auth = Buffer.from(token, "base64").toString(), // convert from base64
parts = auth.split(/:/), // split on colon
username = parts[0],
password = parts[1];
Expand Down