auth-component
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "auth-component", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "An Authenication Component for DoneJS", | ||
@@ -5,0 +5,0 @@ "main": "src/auth-component.js", |
@@ -60,2 +60,20 @@ import $ from 'jquery'; | ||
} | ||
}, | ||
usernameType: { | ||
get(){ | ||
var type; | ||
switch(this.attr('usernameField')){ | ||
case 'email': | ||
type = 'email'; | ||
break; | ||
case 'phone': | ||
type = 'phone'; | ||
break; | ||
default: | ||
type = 'username'; | ||
break; | ||
} | ||
return type; | ||
} | ||
} | ||
@@ -62,0 +80,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154150
244