mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
// @flow
|
|
|
|
import { validation } from "@scm-manager/ui-components";
|
|
|
|
const { isNameValid, isMailValid } = validation;
|
|
|
|
export { isNameValid, isMailValid };
|
|
|
|
export const isDisplayNameValid = (displayName: string) => {
|
|
if (displayName) {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
export const isPasswordValid = (password: string) => {
|
|
return password.length >= 6 && password.length < 32;
|
|
};
|