Use uri instead of local address and login to sign in

This commit is contained in:
Ethan Pippin 2021-10-14 15:32:55 -06:00
parent 3599df56e9
commit 1aa2716f42
2 changed files with 3 additions and 4 deletions

View File

@ -53,7 +53,7 @@ struct UserListView: View {
@ViewBuilder
private var noUserView: some View {
VStack {
Text("Login to a user to get started.")
Text("Sign in to get started.")
.frame(minWidth: 50, maxWidth: 240)
.multilineTextAlignment(.center)
@ -69,7 +69,7 @@ struct UserListView: View {
.padding([.leading, .trailing], 30)
.padding([.top, .bottom], 20)
Text("Login")
Text("Sign in")
.foregroundColor(Color.white)
.bold()
}

View File

@ -80,8 +80,7 @@ final class SessionManager {
let transaction = SwiftfinStore.dataStack.beginUnsafe()
let newServer = transaction.create(Into<SwiftfinStore.Models.StoredServer>())
guard let uri = response.localAddress,
let name = response.serverName,
guard let name = response.serverName,
let id = response.id,
let os = response.operatingSystem,
let version = response.version else { throw JellyfinAPIError("Missing server data from network call") }