mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-16 08:59:31 +01:00
ed075a35b6
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
37 lines
679 B
Dart
37 lines
679 B
Dart
abstract class Users {
|
|
const Users._();
|
|
|
|
static const user1 = User(
|
|
String.fromEnvironment(
|
|
'USER1_NAME',
|
|
defaultValue: 'alice',
|
|
),
|
|
String.fromEnvironment(
|
|
'USER1_PW',
|
|
defaultValue: 'AliceInWonderland',
|
|
),
|
|
);
|
|
static const user2 = User(
|
|
String.fromEnvironment(
|
|
'USER2_NAME',
|
|
defaultValue: 'bob',
|
|
),
|
|
String.fromEnvironment(
|
|
'USER2_PW',
|
|
defaultValue: 'JoWirSchaffenDas',
|
|
),
|
|
);
|
|
}
|
|
|
|
class User {
|
|
final String name;
|
|
final String password;
|
|
|
|
const User(this.name, this.password);
|
|
}
|
|
|
|
const homeserver = 'http://${const String.fromEnvironment(
|
|
'HOMESERVER',
|
|
defaultValue: 'localhost',
|
|
)}';
|