Update 20210528 - mit LoginPopup

This commit is contained in:
2021-05-28 16:20:53 +02:00
parent 5dcd0d1046
commit a437ae0be4
172 changed files with 16125 additions and 103 deletions

View File

@@ -36,7 +36,14 @@ namespace CoreWebAPI1.Controllers
List<User> Details = new List<User>();
return dbh.ConvertDataTable<User>(dbh.Get_Tabledata("Select * from [user] where id=" + id.ToString(), false, true));
}
[HttpGet("{username},{passwort}")]
public List<User> Get(string username, string passwort)
{
dbhelper dbh = new dbhelper();
List<User> Details = new List<User>();
return dbh.ConvertDataTable<User>(dbh.Get_Tabledata("Select * from [user] where aktiv=1 and username='"+username+"' and passwort='"+passwort+"'", false, true));
}
// POST api/<UserController>
[HttpPost]
public void Post([FromBody] User user)