Starts in:
2 DAYS
10 HRS
54 MIN
5 SEC
Starts in:
2 D
10 H
54 M
5 S

Activities of "gvnuysal"

Hi support, I have a two question.

I don't want to see footer div in my Abp Commercial Angular project. How do I do it? My other question is: I need to login to another project in iframe with abp commercial login information. How do I get the login information? How do I get user information from currentUser$ in the code I share.

Note: I need to get the user information in the xxx-component.ts file.

import { ApplicationConfiguration, AuthService, ConfigState, } from '@abp/ng.core'; import * as $ from "jquery" import { Select, Store } from '@ngxs/store'; import { Observable } from 'rxjs'; import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-root',
  template: '
    <abp-loader-bar></abp-loader-bar>
    <abp-dynamic-layout></abp-dynamic-layout>
  ',
})
export class AppComponent implements OnInit{
  constructor(private store: Store, private authService: AuthService) {}
  @Select(ConfigState.getOne('currentUser'))
  currentUser$: Observable<ApplicationConfiguration.CurrentUser>;

  ngOnInit(){   
    this.LoginService();
  }

  LoginService(){
    
    $.ajax({
      url:"http://x.x.x.x:8080/myApp/loginservice",
      type: "POST",
      data: {
        username: "guven",   
        password: "bpm",
        redirect: false,
      },  
      headers: { "Content-Type": "application/x-www-form-urlencoded" },
      xhrFields: { withCredentials: true },
      success: function (data, textStatus, jqXHR) {
        
        $.ajax({
          url:"http://x.x.x.x:8080/bonita/API/system/session/unusedId/1",
          type:"GET",
          xhrFields: { withCredentials: true },
          success: function (data, textStatus, jqXHR) {
            console.log("success getting session");
            console.log(jqXHR);
          
          },
          error: function (jqXHR, textStatus, errorThrown) {
            console.log("error getting session");
          }
        });
      },
      error:function(jqXHR,textStatus,errorThrown) {
      
        console.log("error login")
      }
    });
  }

}
Showing 81 to 81 of 81 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06