File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = async function (context, req) {
2
2
context . log ( "JavaScript HTTP trigger function processed a request v1." ) ;
3
3
const API_VERSION = "1.0.0" ;
4
4
5
- // parse Basic Auth username and password
5
+ // Parse Basic Auth username and password
6
6
var header = req . headers [ "authorization" ] || "" , // get the header
7
7
token = header . split ( / \s + / ) . pop ( ) || "" , // and the encoded auth token
8
8
auth = new Buffer . from ( token , "base64" ) . toString ( ) , // convert from base64
@@ -40,7 +40,7 @@ module.exports = async function (context, req) {
40
40
// Log the request body
41
41
context . log ( `Request body: ${ JSON . stringify ( req . body ) } ` ) ;
42
42
43
- // get domain of email address
43
+ // Get domain of email address
44
44
const domain = req . body . email . split ( "@" ) [ 1 ] ;
45
45
const allowedDomains = [ "ioet.com" ] ;
46
46
You can’t perform that action at this time.
0 commit comments