public async Task <IActionResult> SignUpPost([FromForm] MUserinfo input, string password2) { if (input.PASSWORD.Trim() != password2.Trim()) { return(Json(new { msg = "비밀번호와 비밀번호 확인을 일치시켜주세요" })); } try { _db.BeginTransaction(); var r = await input.SignUpAsync(_db); if (r < 1) { throw new Exception("회원 등록 오류"); } _db.Commit(); } catch (Exception ex) { _db.Rollback(); return(Json(new { msg = ex.Message })); } return(await LoginPost(input.EMAIL, password2, null, false)); }