Initial commit
This commit is contained in:
9
src/systemData/userCredentials.js
Normal file
9
src/systemData/userCredentials.js
Normal file
@ -0,0 +1,9 @@
|
||||
function UserCredentials(username, password) {
|
||||
if (!username || username === '') throw new TypeError("username must be a non-empty string.");
|
||||
if (!password || password === '') throw new TypeError("password must be a non-empty string.");
|
||||
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
module.exports = UserCredentials;
|
Reference in New Issue
Block a user