mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 03:57:32 +09:00
Add forgotten password link to login form
This commit is contained in:
parent
85e589f863
commit
3a68f386a8
@ -49,6 +49,7 @@ namespace osu.Game.Overlays.Login
|
|||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
|
|
||||||
ErrorTextFlowContainer errorText;
|
ErrorTextFlowContainer errorText;
|
||||||
|
LinkFlowContainer forgottenPaswordLink;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -80,6 +81,12 @@ namespace osu.Game.Overlays.Login
|
|||||||
LabelText = "Stay signed in",
|
LabelText = "Stay signed in",
|
||||||
Current = config.GetBindable<bool>(OsuSetting.SavePassword),
|
Current = config.GetBindable<bool>(OsuSetting.SavePassword),
|
||||||
},
|
},
|
||||||
|
forgottenPaswordLink = new LinkFlowContainer
|
||||||
|
{
|
||||||
|
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
},
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -109,6 +116,8 @@ namespace osu.Game.Overlays.Login
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
forgottenPaswordLink.AddLink(LayoutStrings.PopupLoginLoginForgot, "https://osu.ppy.sh/home/password-reset");
|
||||||
|
|
||||||
password.OnCommit += (_, _) => performLogin();
|
password.OnCommit += (_, _) => performLogin();
|
||||||
|
|
||||||
if (api?.LastLoginError?.Message is string error)
|
if (api?.LastLoginError?.Message is string error)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user