mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-01 02:02:35 +01:00
@@ -284,7 +284,11 @@ class _AuthCardState extends State<AuthCard> {
|
||||
return null;
|
||||
},
|
||||
onSaved: (value) {
|
||||
_authData['serverUrl'] = value!;
|
||||
// Remove any trailing slash
|
||||
if (value!.lastIndexOf('/') == (value.length - 1)) {
|
||||
value = value.substring(0, value.lastIndexOf('/'));
|
||||
}
|
||||
_authData['serverUrl'] = value;
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user