mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
25 lines
655 B
C#
25 lines
655 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Renci.SshNet;
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels
|
|
{
|
|
public class MaintenanceViewModel
|
|
{
|
|
[Required]
|
|
public string UserName { get; set; }
|
|
[Required]
|
|
[DataType(DataType.Password)]
|
|
public string Password { get; set; }
|
|
[Display(Name = "Change domain")]
|
|
public string DNSDomain { get; set; }
|
|
public SshClient CreateSSHClient(string host)
|
|
{
|
|
return new SshClient(host, UserName, Password);
|
|
}
|
|
}
|
|
}
|