Adding sections to login form and allowing schema overriding
This commit is contained in:
1 parent
c89b0d4bef
commit
4fd18c61aa
9 files changed
+26
-15
No files matched your search
@@ -5,8 +5,10 @@
|
||||
{{#form class='user-login-form form-themed p-a-2' schema=instance.schema api=instance.api hideValidationBox=true}}
|
||||
<h3>Sign In</h3>
|
||||
<hr class="m-h-2">
|
||||
{{>section 'userLoginFieldsBefore'}}
|
||||
{{>inputText labelClass='form-group' key='username'}}
|
||||
{{>inputPassword labelClass='form-group' key='password'}}
|
||||
{{>section 'userLoginFieldsAfter'}}
|
||||
<hr class="m-t-0 m-b-2">
|
||||
{{#button action='login' class='form-control btn btn-primary'}}Enter{{/button}}
|
||||
{{/form}}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Template } from 'meteor/templating';
|
||||
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
|
||||
import { Router } from 'meteor/iron:router';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
@@ -40,14 +39,5 @@ Template.userLogin.onCreated(() => {
|
||||
}
|
||||
};
|
||||
|
||||
instance.schema = new SimpleSchema({
|
||||
username: {
|
||||
type: String,
|
||||
label: 'Username'
|
||||
},
|
||||
password: {
|
||||
type: String,
|
||||
label: 'Password'
|
||||
}
|
||||
});
|
||||
instance.schema = OHIF.user.schema;
|
||||
});
|
||||
Reference in new issue
Block a user