Skip to content
Snippets Groups Projects
Commit 62868f03 authored by rswindell's avatar rswindell
Browse files

JS login() method:

Convert up to 128 characters of the passed user name to a string we can use
and log in case of failure (helps to debug the full actual user name passed to
the sevice, e.g. by an IMAP client).
parent 6314ff4c
Branches
Tags
No related merge requests found
......@@ -359,7 +359,7 @@ js_login(JSContext *cx, uintN argc, jsval *arglist)
return(JS_FALSE);
/* User name or number */
JSVALUE_TO_ASTRING(cx, argv[0], user, (LEN_ALIAS > LEN_NAME) ? LEN_ALIAS+2 : LEN_NAME+2, NULL);
JSVALUE_TO_ASTRING(cx, argv[0], user, 128, NULL);
if(user==NULL)
return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment