L
L
lavezzi12015-07-26 08:54:34
C++ / C#
lavezzi1, 2015-07-26 08:54:34

What is the best way to implement authorization for only one user?

Hello. Wrote the main functions for the blog, now it's the turn to write authorization for me as the sole author of this blog. Advise how best and minimalistic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@antoo, 2018-12-12
_

https://docs.microsoft.com/en-us/dotnet/api/system...

U
User Unknown, 2018-12-12
@aveBHS

using System.IO;

int test = 0;
if(File.Exists(DirectoryInfo.GetCurrentDirectory + "\\test.exe")) i = 1;
return test;

V
vsuhachev, 2015-07-26
@vsuhachev

Take a look at HTTP Basic Authentication, here's an example for nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question