mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
remove basic
This commit is contained in:
@@ -7,6 +7,7 @@ import { IonicModule } from '@ionic/angular';
|
||||
import { LoginPageRoutingModule } from './login-routing.module';
|
||||
|
||||
import { LoginPage } from './login.page';
|
||||
import { UserModule } from 'src/app/module/user/user.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
||||
@@ -21,7 +21,7 @@ import { NotificationRepositoryService } from 'src/app/module/notification/data/
|
||||
import { ChatServiceService } from 'src/app/module/chat/domain/chat-service.service';
|
||||
import { RoomLocalRepository } from 'src/app/module/chat/data/repository/room/room-local-repository.service'
|
||||
import { MessageLocalDataSourceService } from 'src/app/module/chat/data/repository/message/message-local-data-source.service'
|
||||
|
||||
import { UserService } from 'src/app/module/user/domain/user.service'
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
@@ -63,7 +63,8 @@ export class LoginPage implements OnInit {
|
||||
private NotificationRepositoryService: NotificationRepositoryService,
|
||||
private ChatServiceService: ChatServiceService,
|
||||
private RoomLocalRepository: RoomLocalRepository,
|
||||
private MessageLocalDataSourceService: MessageLocalDataSourceService
|
||||
private MessageLocalDataSourceService: MessageLocalDataSourceService,
|
||||
private UserService:UserService
|
||||
) { }
|
||||
|
||||
ngOnInit() { }
|
||||
@@ -132,6 +133,11 @@ export class LoginPage implements OnInit {
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
this.UserService.login({
|
||||
username: newUserName.trim(),
|
||||
password: this.password.trim(),
|
||||
})
|
||||
|
||||
let attempt = await this.authService.login(this.userattempt, { saveSession: false })
|
||||
/* const data = await this.authService.loginContenteProduction(this.userattempt, { saveSession: true }) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user