
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ember-bootstrap-cp-validations
Advanced tools
This Ember addon adds support for validations based on Ember CP Validations to ember-bootstrap forms. This way your forms are only submitted when the underlying data is valid, otherwise the appropriate bootstrap error markup will be applied. See the FormElement documentation for further details.
ember install ember-bootstrap-cp-validations
You should have installed the ember-bootstrap and ember-cp-validations addons already. If not install them:
ember install ember-bootstrap
ember install ember-cp-validations
Define your model and its validations as described in Ember CP Validations:
import Ember from 'ember';
import { validator, buildValidations } from 'ember-cp-validations';
const Validations = buildValidations({
username: validator('presence', true),
email: validator('format', { type: 'email' }),
password: validator('length', { min: 10 }),
});
export default Ember.Component.extend(Validations, {
username: null,
email: null,
password: null,
});
Then assign the model to your form:
<BsForm @model={{this}} as |form|>
<form.element @label="Username" @controlType="text" @property="username" />
<form.element @label="Email" @controlType="email" @property="email" />
<form.element @label="Password" @controlType="password" @property="password" />
<form.submitButton>Submit</form.submitButton>
</BsForm>
See the Contributing guide for details.
This project is licensed under the MIT License.
v2.1.0 (2020-12-09)
FAQs
ember-cp-validations support for ember-bootstrap
The npm package ember-bootstrap-cp-validations receives a total of 511 weekly downloads. As such, ember-bootstrap-cp-validations popularity was classified as not popular.
We found that ember-bootstrap-cp-validations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.