Commit 74cf1109 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Felix Paul Kühne
Browse files

add anonymous login button to remote server login dialog

parent 107ff64a
......@@ -233,6 +233,14 @@
handler:^(UIAlertAction * _Nonnull action) {
[SSKeychain deletePasswordForService:serviceIdentifier account:accountName];
}]];
} else {
[alertController addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"BUTTON_ANONYMOUS_LOGIN", nil)
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * _Nonnull action) {
login.username = nil;
login.password = nil;
[self showBrowserWithLogin:login];
}]];
}
[alertController addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"BUTTON_CANCEL", nil)
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -143,6 +143,7 @@
"USER_LABEL"="User";
"PASSWORD_LABEL"="Password";
"DISABLE_LABEL"="Disable";
"BUTTON_ANONYMOUS_LOGIN"="Anonymous Login";
"LOCAL_SERVER_REFRESH"="Refresh";
"LOCAL_SERVER_LAST_UPDATE"="Last Updated on %@";
......
......@@ -15,8 +15,8 @@
NS_ASSUME_NONNULL_BEGIN
@interface VLCNetworkServerLoginInformation : NSObject <VLCNetworkServerLoginInformation>
@property (nonatomic) NSString *username;
@property (nonatomic) NSString *password;
@property (nonatomic, nullable) NSString *username;
@property (nonatomic, nullable) NSString *password;
@property (nonatomic) NSString *address;
@property (nonatomic) NSNumber *port;
@property (nonatomic) NSString *protocolIdentifier;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment