C
C#15mo ago
gamer50082

✅ login registration form not working

3 forms mainform.cs shows 2 buttons register login register.cs contain 3 textbox [username] [password] [confirmpassword] 1 button to send [username] and [password] to /api/register. if credentials is correct it should receive (token) and (accountType {Basic, Premium}) login.cs contain 2 textbox [username] [password] to /api/login. if credentials is correct it should receive (token) and (accountType {Basic, Premium})
4 Replies
SG97
SG9715mo ago
you need to specify the problem "not working" tells nothing
gamer50082
gamer5008215mo ago
using System;
using System.Windows.Forms;

namespace AuthWinForms
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}

private void RegisterButton_Click(object sender, EventArgs e)
{
var registerForm = new RegisterForm();
registerForm.Show();
}

private void LoginButton_Click(object sender, EventArgs e)
{
var loginForm = new LoginForm();
loginForm.Show();
}
}
}
using System;
using System.Windows.Forms;

namespace AuthWinForms
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}

private void RegisterButton_Click(object sender, EventArgs e)
{
var registerForm = new RegisterForm();
registerForm.Show();
}

private void LoginButton_Click(object sender, EventArgs e)
{
var loginForm = new LoginForm();
loginForm.Show();
}
}
}
jcotton42
jcotton4215mo ago
you need to elaborate on "not working"
gamer50082
gamer5008215mo ago
nvm i am using html website then