mirror of
https://git.stillkill.net/Stillkill/GiteaPublish.git
synced 2026-10-22 21:42:19 +01:00
Initial Commit
This commit is contained in:
commit
518159ea7f
7 files changed
+127
No files matched your search
@@ -0,0 +1,15 @@
|
||||
namespace GiteaPublish.Gitea;
|
||||
|
||||
public class BasicAuthModel
|
||||
{
|
||||
public string AuthHeader => Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{_username}:{_password}"));
|
||||
|
||||
private readonly string _username;
|
||||
private readonly string _password;
|
||||
|
||||
public BasicAuthModel(string username, string password)
|
||||
{
|
||||
_username = username;
|
||||
_password = password;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user