Skip to content
Snippets Groups Projects
Commit cae883b4 authored by deuce's avatar deuce
Browse files

Ensure the domain is lower-case and no more than eight chars.

parent 03e30bf2
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ var FIDO = {
else
point = 0;
if (orig_domain !== undefined)
domain = orig_domain.toString().toLowerCase();
domain = orig_domain.toString().toLowerCase().substr(0, 8);
else
domain = '';
......@@ -122,7 +122,7 @@ var FIDO = {
if (val == undefined)
domain = '';
else
domain = val.toString();
domain = val.toString().toLowerCase().substr(0, 8);
if (typeof domain !== 'string')
throw('domain is not a string');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment