parent
bf95cc70a5
commit
2857b1463e
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Models\Models.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -1,28 +1,28 @@
|
|||||||
using Models.Endpoint;
|
using Endpoint;
|
||||||
using ShoopNCook.Controllers;
|
using ShoopNCook.Controllers;
|
||||||
|
|
||||||
namespace ShoopNCook.Pages;
|
namespace ShoopNCook.Pages;
|
||||||
|
|
||||||
public partial class LoginPage : ContentPage
|
public partial class LoginPage : ContentPage
|
||||||
{
|
{
|
||||||
private readonly LoginController controller;
|
private readonly LoginController controller;
|
||||||
public LoginPage(LoginController controller)
|
public LoginPage(LoginController controller)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.controller = controller;
|
this.controller = controller;
|
||||||
}
|
}
|
||||||
private async void OnLoginButtonClicked(object sender, EventArgs e)
|
private async void OnLoginButtonClicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string email = EmailEntry.Text;
|
string email = EmailEntry.Text;
|
||||||
string password = PasswordEntry.Text;
|
string password = PasswordEntry.Text;
|
||||||
controller.Login(email, password);
|
controller.Login(email, password);
|
||||||
}
|
}
|
||||||
private async void ForgotPasswordTapped(object sender, EventArgs e)
|
private async void ForgotPasswordTapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
await Shell.Current.Navigation.PushAsync(new ForgotPassword());
|
await Shell.Current.Navigation.PushAsync(new ForgotPassword());
|
||||||
}
|
}
|
||||||
private async void RegisterLabbelTapped(object sender, EventArgs e)
|
private async void RegisterLabbelTapped(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
await Shell.Current.GoToAsync("//Register");
|
await Shell.Current.GoToAsync("//Register");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue