File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Identity/UI/src/Areas/Identity/Pages/V4/Account Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public override async Task OnGetAsync(string returnUrl = null)
109
109
ModelState . AddModelError ( string . Empty , ErrorMessage ) ;
110
110
}
111
111
112
- returnUrl = returnUrl ?? Url . Content ( "~/" ) ;
112
+ returnUrl ??= Url . Content ( "~/" ) ;
113
113
114
114
// Clear the existing external cookie to ensure a clean login process
115
115
await HttpContext . SignOutAsync ( IdentityConstants . ExternalScheme ) ;
@@ -121,7 +121,7 @@ public override async Task OnGetAsync(string returnUrl = null)
121
121
122
122
public override async Task < IActionResult > OnPostAsync ( string returnUrl = null )
123
123
{
124
- returnUrl = returnUrl ?? Url . Content ( "~/" ) ;
124
+ returnUrl ??= Url . Content ( "~/" ) ;
125
125
126
126
ExternalLogins = ( await _signInManager . GetExternalAuthenticationSchemesAsync ( ) ) . ToList ( ) ;
127
127
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public override async Task OnGetAsync(string returnUrl = null)
126
126
127
127
public override async Task < IActionResult > OnPostAsync ( string returnUrl = null )
128
128
{
129
- returnUrl = returnUrl ?? Url . Content ( "~/" ) ;
129
+ returnUrl ??= Url . Content ( "~/" ) ;
130
130
ExternalLogins = ( await _signInManager . GetExternalAuthenticationSchemesAsync ( ) ) . ToList ( ) ;
131
131
if ( ModelState . IsValid )
132
132
{
You can’t perform that action at this time.
0 commit comments