C
C#2y 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
SG972y ago
you need to specify the problem "not working" tells nothing
gamer50082
gamer50082OP2y 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
jcotton422y ago
you need to elaborate on "not working"
gamer50082
gamer50082OP2y ago
nvm i am using html website then
Want results from more Discord servers?
Add your server