import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { OpenidService } from '../../base/base-openid-service';

@Injectable({
  providedIn: 'root'
})
export class UserOpenidService extends OpenidService {

    constructor(
        public http: HttpClient
    ) {
        super('/user',http)
    }
    changePassword(uid,data){
        return this.http.put(`${this.prefix}/password/${uid}`,data)
    }

    active(uid){
        return this.http.put(`${this.prefix}/user/active/${uid}`,null)
    }

    inactive(uid){
        return this.http.put(`${this.prefix}/user/inactive/${uid}`,null)
    }

    searchUser(uid){
        return this.http.get(`${this.prefix}/search_user${uid}`)
    }
}
