mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
add inactivity
This commit is contained in:
@@ -7,7 +7,7 @@ import { UserSession } from '../models/user.model';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class SessionService {
|
||||
class SessionService {
|
||||
|
||||
// main data
|
||||
private _user = new UserSession()
|
||||
@@ -54,11 +54,16 @@ export class SessionService {
|
||||
}
|
||||
|
||||
needTovalidateUser() {
|
||||
return this._user.Inativity
|
||||
return this._user.Inactivity
|
||||
}
|
||||
|
||||
setInativity(value: boolean) {
|
||||
this._user.Inativity = value
|
||||
this._user.Inactivity = value
|
||||
this.save()
|
||||
}
|
||||
|
||||
setUrlBeforeInactivity(pathname: string) {
|
||||
this._user.UrlBeforeInactivity = pathname
|
||||
this.save()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user