Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-bootstrap-validations
Advanced tools
This Ember addon adds support for validations based on ember-validations to ember-bootstrap
This Ember addon adds support for validations based on ember-validations to ember-bootstrap forms. ember-bootstrap versions before 0.7.0 came with built-in support for ember-validations, all versions starting at 0.7.0 need an additional addon that implements validation support for the particular validation library. This addon delivers support for ember-validations.
ember install ember-bootstrap-validations
You should have installed the ember-bootstrap and ember-validations addons already. If not install them:
ember install ember-bootstrap
ember install ember-validations
If using ember-bootstrap 1.0 (alpha), install the corresponding version of this addon:
ember install ember-bootstrap-validations@1.0.0-alpha
Add validations to your model:
import DS from 'ember-data';
import EmberValidations from 'ember-validations';
export default DS.Model.extend(EmberValidations, {
username: DS.attr('string'),
email: DS.attr('string'),
password: DS.attr('string'),
validations: {
'username': {
presence: true,
length: { minimum: 6 }
},
'email': {
presence: true
},
'password': {
presence: true,
length: { minimum: 8 }
}
}
});
Then assign the model to your form:
{{#bs-form model=model}}
{{bs-form-element label="Username" controlType="text" property="username" required=true}}
{{bs-form-element label="Email" controlType="email" property="email" required=true}}
{{bs-form-element label="Password" controlType="password" property="password" required=true}}
{{bs-button defaultText="Submit" type="primary" buttonType="submit"}}
{{/bs-form}}
Code and documentation copyright 2016 kaliber5 GmbH. Code released under the MIT license.
FAQs
This Ember addon adds support for validations based on ember-validations to ember-bootstrap
The npm package ember-bootstrap-validations receives a total of 0 weekly downloads. As such, ember-bootstrap-validations popularity was classified as not popular.
We found that ember-bootstrap-validations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.