mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Added support for email login #1513
This commit is contained in:
parent
96e7805eb9
commit
18be4a89f7
2 changed files with 8 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
<li id="UserManagement" [routerLinkActive]="['active']"><a [routerLink]="['/usermanagement']"><i class="fa fa-user"></i> User Management</a></li>
|
||||
</ul>
|
||||
<ul *ngIf="hasRole('Admin') || hasRole('PowerUser')" class="nav navbar-nav">
|
||||
<li><a href="https://www.paypal.me/PlexRequestsNet" target="_blank" pTooltip="This is how I convince my wife to let me spend my spare time on Ombi ;)"><i class="fa fa-heart" style="color:red"></i> Donate!</a></li>
|
||||
<li><a href="https://www.paypal.me/PlexRequestsNet" target="_blank" pTooltip="This is how I convince my wife to let me spend my spare time developing Ombi ;)"><i class="fa fa-heart" style="color:red"></i> Donate!</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
|
|
@ -53,7 +53,13 @@ namespace Ombi.Controllers
|
|||
|
||||
if (user == null)
|
||||
{
|
||||
return new UnauthorizedResult();
|
||||
// Could this be an email login?
|
||||
user = await _userManager.FindByEmailAsync(model.Username);
|
||||
|
||||
if (user == null)
|
||||
{
|
||||
return new UnauthorizedResult();
|
||||
}
|
||||
}
|
||||
|
||||
// Verify Password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue