mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
Merge remote-tracking branch 'origin/v3.4' into dev
This commit is contained in:
12
interface/src/validators/authentication.ts
Normal file
12
interface/src/validators/authentication.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import Schema from 'async-validator';
|
||||
|
||||
export const SIGN_IN_REQUEST_VALIDATOR = new Schema({
|
||||
username: {
|
||||
required: true,
|
||||
message: 'Please provide a username'
|
||||
},
|
||||
password: {
|
||||
required: true,
|
||||
message: 'Please provide a password'
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user