* WIP on user groups
* Minor changes to user credential prompt
This commit is contained in:
@@ -74,6 +74,7 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
||||
menuViewController.switchFocus(viewIds[0]);
|
||||
} else {
|
||||
// Seems legit!
|
||||
// :TODO: All of this should be a system API, not a mod
|
||||
var newUser = new user.User();
|
||||
|
||||
newUser.username = formData.value.username;
|
||||
@@ -87,10 +88,11 @@ function submitApplication(callingMenu, formData, extraArgs) {
|
||||
email_address : formData.value.email,
|
||||
web_address : formData.value.web,
|
||||
|
||||
// :TODO: This is set in User.create() -- proabbly don't need it here:
|
||||
account_status : Config.users.requireActivation ? user.User.AccountStatus.inactive : user.User.AccountStatus.active,
|
||||
|
||||
// :TODO: Other defaults
|
||||
// :TODO: should probably have a place to create defaults/etc.
|
||||
// :TODO: should probably have a place to create defaults/etc.
|
||||
};
|
||||
|
||||
if('*' === Config.defaults.theme) {
|
||||
|
||||
@@ -56,7 +56,8 @@
|
||||
"submit" : true,
|
||||
"focus" : true,
|
||||
// :TODO: need a good way to localize these ... Standard Orig->Lookup seems good.
|
||||
"items" : [ "Login", "Apply", "Log Off" ]
|
||||
"items" : [ "Login", "Apply", "Log Off" ],
|
||||
"itemSpacing" : 1
|
||||
}
|
||||
},
|
||||
"submit" : {
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
{
|
||||
"userCredentials" : {
|
||||
"art" : "USERCRED",
|
||||
"art" : "usercred",
|
||||
"mci" : {
|
||||
"ET1" : {
|
||||
"argName" : "username"
|
||||
"argName" : "username",
|
||||
"width" : 15,
|
||||
"maxLength" : "@config:users.usernameMax"
|
||||
},
|
||||
"ET2" : {
|
||||
"submit" : true,
|
||||
"argName" : "password",
|
||||
"password" : true
|
||||
"submit" : true,
|
||||
"argName" : "password",
|
||||
"password" : true,
|
||||
"width" : 15,
|
||||
"maxLength" : "@config:users.passwordMax"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user