Skip to content

Commit

Permalink
fix(mobile): Server endpoint on the login screen. (#16149)
Browse files Browse the repository at this point in the history
Fixing the server endpoint on the login screen. It added the "/api" suffix instead of using the default method getServerUrl, which takes care of sanitizing the URL.

Co-authored-by: Joao Paulo Ros <[email protected]>
  • Loading branch information
jpros and Joao Paulo Ros authored Feb 17, 2025
1 parent 25e1c8c commit efd8d8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mobile/lib/widgets/forms/login/login_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'package:immich_mobile/extensions/build_context_extensions.dart';
import 'package:immich_mobile/providers/oauth.provider.dart';
import 'package:immich_mobile/providers/gallery_permission.provider.dart';
import 'package:immich_mobile/routing/router.dart';
import 'package:immich_mobile/entities/store.entity.dart';
import 'package:immich_mobile/providers/auth.provider.dart';
import 'package:immich_mobile/providers/backup/backup.provider.dart';
import 'package:immich_mobile/providers/server_info.provider.dart';
Expand Down Expand Up @@ -150,7 +149,7 @@ class LoginForm extends HookConsumerWidget {

useEffect(
() {
final serverUrl = Store.tryGet(StoreKey.serverUrl);
final serverUrl = getServerUrl();
if (serverUrl != null) {
serverEndpointController.text = serverUrl;
}
Expand Down

0 comments on commit efd8d8b

Please sign in to comment.