fix(jellyfin): a tap on someone a server shows names them, the password asked
Jellyfin v10.11 and later no longer say which accounts have a password (HasPassword is always true, jellyfin/jellyfin#14950), so the demo's account was listed as "With a password" and only named in the form. Every listed account is now named in the form with the password field focused, which says to leave it empty for an account without one, as Jellyfin's own apps do; the line under each account goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
33584e428e
commit
107160cac4
1 changed files with 62 additions and 66 deletions
|
|
@ -39,8 +39,9 @@ MockClient jellyfin12(List<http.Request> requests) => MockClient((
|
|||
'id': 'e39b17f2',
|
||||
'startupWizardCompleted': true,
|
||||
}),
|
||||
// The people the server shows on its login screen, one without a
|
||||
// password (a demo's), in either case of field names.
|
||||
// The people the server shows on its login screen, in either case of
|
||||
// field names; whether one has a password, which servers before v10.11
|
||||
// said, counts for nothing.
|
||||
('GET', '/Users/Public') => json([
|
||||
{'Name': 'Demo', 'Id': 'u-2', 'HasPassword': false},
|
||||
{'name': 'mika', 'id': 'u-1', 'hasPassword': true},
|
||||
|
|
@ -236,15 +237,14 @@ void main() {
|
|||
},
|
||||
);
|
||||
|
||||
test('lists the people a server shows on its login screen, and which '
|
||||
'need a password', () async {
|
||||
test('lists the people a server shows on its login screen', () async {
|
||||
final server = await gateway.server(
|
||||
Uri.parse('http://jellyfin.local:8096'),
|
||||
);
|
||||
|
||||
expect(await gateway.publicUsers(server), const [
|
||||
JellyfinPublicUser(id: 'u-2', name: 'Demo', hasPassword: false),
|
||||
JellyfinPublicUser(id: 'u-1', name: 'mika', hasPassword: true),
|
||||
JellyfinPublicUser(id: 'u-2', name: 'Demo'),
|
||||
JellyfinPublicUser(id: 'u-1', name: 'mika'),
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue