getDemoUser static method
Returns a demo user with preset credentials for demo login.
The demo user's username is DemoUser123 and their password is hashed.
Implementation
static User getDemoUser() {
const String demoUserName = 'DemoUser123';
const String demoPassword = '123';
EncryptionUtils encryptionUtils = EncryptionUtils();
String hashedPassword = encryptionUtils.hashUserPassword(
userName: demoUserName,
passwordToHash: demoPassword,
);
return User(
userName: demoUserName,
hashedPassword: hashedPassword,
);
}