Tunned setting to run on aol.gemcousa.mx domain

main
alfonso 8 months ago
parent f829235a1b
commit 207ca6feff
  1. 12
      Repository/UsuariosRepository.cs
  2. 2
      appsettings.Development.json
  3. 2
      appsettings.json

@ -21,7 +21,7 @@ namespace AOLBackend.Repository
public async Task<IEnumerable<DTOUsuarioShort>> GetAllUsuariosShort()
{
var query = "SELECT id, Usuario FROM Usuario WHERE Usuario<>'Admin'";
var query = "SELECT id, Usuario FROM usuario WHERE Usuario<>'Admin'";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<DTOUsuarioShort>(query);
@ -31,7 +31,7 @@ namespace AOLBackend.Repository
public async Task<IEnumerable<IUsuarios>> GetAllUsuarios()
{
var query = "SELECT * FROM Usuario";
var query = "SELECT * FROM usuario";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<IUsuarios>(query);
@ -41,7 +41,7 @@ namespace AOLBackend.Repository
public async Task<IUsuarios> GetUsuarioById(int id)
{
var query = "SELECT * FROM Usuario WHERE id=@id";
var query = "SELECT * FROM usuario WHERE id=@id";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<IUsuarios>(query, new { id = id });
@ -74,7 +74,7 @@ namespace AOLBackend.Repository
public async Task<IUsuarios> SearchUsuario(DTOLogin user)
{
var query = "SELECT * FROM Usuario WHERE Usuario=@Usuario";
var query = "SELECT * FROM usuario WHERE Usuario=@Usuario";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<IUsuarios>(query, new { @Usuario = user.Usuario });
@ -85,7 +85,7 @@ namespace AOLBackend.Repository
public async Task<DTOLogin> ResetPassword(DTOLogin user)
{
var query = "[Usuario.ResetPassword]";
var query = "Usuario_Reset_Password";
using (var connection = _context.CreateConnection())
{
var usuarios = await connection.QueryAsync<DTOLogin>(query, new
@ -135,7 +135,7 @@ namespace AOLBackend.Repository
public async Task<Boolean> Activate(int id, int Activo)
{
var query = "[Usuario.Activate]";
var query = "Usuario_Activate";
using (var connection = _context.CreateConnection())
{
var usuario = await connection.QueryAsync<IUsuarios>(query, new

@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"SqlConnection": "server=.; database=AOL; Integrated Security=true;TrustServerCertificate=True;",
"MySQLConnection": "Server=localhost; User ID=root; Password=toor1234.; Database=AOL"
"MySQLConnection": "Server=127.0.0.1; User ID=root; Password=toor1234; Database=aol"
},
"Logging": {
"LogLevel": {

@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"SqlConnection": "server=localhost; database=AOL; User Id=sa;Password=toor1234;Encrypt=False;",
"MySQLConnection": "Server=127.0.0.1; User ID=DBAdmin; Password=DBAdmin1234$.; Port=3360; Database=AOL"
"MySQLConnection": "Server=127.0.0.1; User ID=sa; Password=toor1234; Port=3360; Database=AOL"
},
"DefaultUser": {
"Password": "Bienvenido123!"

Loading…
Cancel
Save