Fix server path not saved in Account

This commit is contained in:
Ming Ming 2022-11-27 16:21:39 +08:00
parent 1bf6dfba5a
commit 938a0dfb4f

View file

@ -4,8 +4,8 @@ import 'dart:io';
import 'package:bloc/bloc.dart';
import 'package:logging/logging.dart';
import 'package:nc_photos/account.dart';
import 'package:nc_photos/ci_string.dart';
import 'package:nc_photos/api/api_util.dart' as api_util;
import 'package:nc_photos/ci_string.dart';
import 'package:nc_photos/exception.dart';
abstract class AppPasswordExchangeBlocEvent {
@ -231,7 +231,8 @@ class AppPasswordExchangeBloc
final account = Account(
Account.newId(),
response.server.scheme,
response.server.authority,
response.server.authority +
(response.server.path.isEmpty ? "" : response.server.path),
response.loginName.toCi(),
response.loginName,
response.appPassword,