Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Return accountStores property on JSON response (fixes #90)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarbettini committed Jun 29, 2017
1 parent 70d1a78 commit c820974
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ public LoginFormViewModel(LoginViewModel existing)
{
// Copy and extend
this.Form = existing.Form;
this.AccountStores = existing.AccountStores;
}

public IReadOnlyList<AccountStoreViewModel> AccountStores { get; set; } = new List<AccountStoreViewModel>();

public string Status { get; set; }

public bool RegistrationEnabled { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions src/Stormpath.Owin.Abstractions/ViewModel/LoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ namespace Stormpath.Owin.Abstractions.ViewModel
public class LoginViewModel
{
public LoginFormFieldViewModel Form { get; set; } = new LoginFormFieldViewModel();

public IReadOnlyList<AccountStoreViewModel> AccountStores { get; set; } = new List<AccountStoreViewModel>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public class RegisterViewModel
{
public RegisterFormFieldViewModel Form { get; set; } = new RegisterFormFieldViewModel();

public List<AccountStoreViewModel> AccountStores { get; set; } = new List<AccountStoreViewModel>();
public IReadOnlyList<AccountStoreViewModel> AccountStores { get; set; } = new List<AccountStoreViewModel>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Stormpath OWIN middleware library</Description>
<Copyright>(c) 2016 Stormpath, Inc.</Copyright>
<VersionPrefix>4.0.0-rc3</VersionPrefix>
<VersionPrefix>4.0.0-rc4</VersionPrefix>
<Authors>Nate Barbettini</Authors>
<TargetFrameworks>net451;netstandard1.4</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;CS0618</NoWarn>
Expand Down

0 comments on commit c820974

Please sign in to comment.