File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- @using Microsoft .AspNetCore .Http
21@using Microsoft .AspNetCore .Identity
32@using DevBetterWeb .Infrastructure .Identity .Data ;
3+ @using Microsoft .Extensions .Configuration
44@inject SignInManager <ApplicationUser > SignInManager
55@inject UserManager <ApplicationUser > UserManager
6- @inject IHttpContextAccessor HttpContextAccessor
6+ @inject IConfiguration Configuration
77
88<!DOCTYPE html>
99<html lang =" en" >
199199 <footer class =" sticky-footer bg-white" >
200200 <div class =" container my-auto" >
201201 <div class =" copyright text-center my-auto" >
202- <span >Copyright © ; devBetter @DateTime.Now.Year ; All Rights Reserved. @HttpContextAccessor.HttpContext ?.Connection?.LocalIpAddress </span >
202+ <span >Copyright © ; devBetter @DateTime.Now.Year ; All Rights Reserved. @Configuration ["Hosting:PublicIP"] </span >
203203 </div >
204204 </div >
205205 </footer >
Original file line number Diff line number Diff line change 5353builder . Services . Configure < StripeOptions > ( builder . Configuration . GetSection ( "StripeOptions" ) ) ;
5454builder . Services . Configure < SubscriptionPlanOptions > ( builder . Configuration . GetSection ( "SubscriptionPlanOptions" ) ) ;
5555builder . Services . Configure < ApiSettings > ( builder . Configuration . GetSection ( "ApiSettings" ) ) ;
56- builder . Services . AddHttpContextAccessor ( ) ;
5756
5857// PRODUCTION SERVICES
5958if ( builder . Environment . EnvironmentName . ToLower ( ) == "production" )
You can’t perform that action at this time.
0 commit comments