mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-08 04:19:34 -05:00
Make password an optional field on sign in
This commit is contained in:
@@ -29,7 +29,7 @@ export default function ServerAuthentication({
|
||||
|
||||
const useApiMutation = useMutation({
|
||||
mutationFn: async (credentials: JellyfinCredentials) => {
|
||||
return await Client.api!.authenticateUserByName(credentials.username, credentials.password!);
|
||||
return await Client.api!.authenticateUserByName(credentials.username, credentials.password);
|
||||
},
|
||||
onSuccess: async (authResult) => {
|
||||
|
||||
@@ -107,7 +107,7 @@ export default function ServerAuthentication({
|
||||
)}
|
||||
|
||||
<Button
|
||||
disabled={_.isEmpty(username) || _.isEmpty(password) || useApiMutation.isPending}
|
||||
disabled={_.isEmpty(username) || useApiMutation.isPending}
|
||||
onPress={() => {
|
||||
|
||||
if (!_.isUndefined(username)) {
|
||||
|
||||
Reference in New Issue
Block a user