File tree Expand file tree Collapse file tree 4 files changed +2
-46
lines changed
AbpCompanyName.AbpProjectName.WebMpa/Views/Account
AbpCompanyName.AbpProjectName.WebSpaAngular Expand file tree Collapse file tree 4 files changed +2
-46
lines changed Original file line number Diff line number Diff line change 5151 </div >
5252 }
5353 </form >
54-
55- @{
56- var loginProviders = Context .GetOwinContext ().Authentication .GetExternalAuthenticationTypes ().ToList ();
57-
58- Func <string , string > getSocialIconClass = (provider ) =>
59- {
60- provider = provider .ToLowerInvariant ();
61-
62- if (provider == " microsoft" )
63- {
64- return " windows" ;
65- }
66-
67- return provider ;
68- };
69- }
70-
71- @if (Model .MultiTenancySide == MultiTenancySides .Tenant && loginProviders .Count > 0 )
72- {
73- <div class =" login-options" >
74- <h4 >@L( " LoginWith" )</h4 >
75- <ul class =" social-icons" >
76- @using (Html .BeginForm (" ExternalLogin" , " Account" , method : FormMethod .Post ))
77- {
78- @Html.AntiForgeryToken()
79-
80- <input type =" hidden" name =" returnUrl" value =" @ViewBag.ReturnUrl" />
81- <input type =" hidden" name =" provider" value =" " />
82-
83- foreach (AuthenticationDescription p in loginProviders )
84- {
85- <a class =" btn btn-default btn-sm fa fa-@getSocialIconClass(p.AuthenticationType) social-login-link"
86- title =" @p.AuthenticationType"
87- data-provider =" @p.AuthenticationType"
88- href =" javascript:;" ></a >
89- }
90- }
91- </ul >
92- </div >
93- }
94-
9554 </div >
9655</div >
Original file line number Diff line number Diff line change 2424
2525 assignedPermissions . push ( permission . name ) ;
2626 }
27- console . log ( assignedPermissions ) ;
27+
2828 vm . role . permissions = assignedPermissions ;
2929 roleService . create ( vm . role )
3030 . then ( function ( ) {
Original file line number Diff line number Diff line change 1313 function getRoles ( ) {
1414 userService . getRoles ( )
1515 . then ( function ( result ) {
16- console . log ( result ) ;
1716 vm . roles = result . data . items ;
1817 } ) ;
1918 }
Original file line number Diff line number Diff line change 1- @using Abp .MultiTenancy
2- @using Abp .Web .Mvc .Extensions
3- @using Microsoft .Owin .Security
1+ @using Abp .Web .Mvc .Extensions
42@model AbpCompanyName .AbpProjectName .WebSpaAngular .Models .Account .LoginFormViewModel
53@section Styles
64{
You can’t perform that action at this time.
0 commit comments