File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ export const postRecoverPassword = async (username : string) => usersApi.recover
1616
1717export const postValidationAccount = async ( data : IUser ) => usersApi . getValidateAccount ( data . email , data . token ) ;
1818
19- export const putSecurity = async ( data : IUserPutSecurity ) => usersApi . setSessionRecord ( data . id , { session_record : data . status } ) ;
19+ export const setSessionRecordStatus = async ( data : IUserPutSecurity ) => usersApi . setSessionRecord ( data . id , { session_record : data . status } ) ;
2020
21- export const getSecurity = async ( ) => usersApi . checkSessionRecord ( ) ;
21+ export const getSessionRecordStatus = async ( ) => usersApi . checkSessionRecord ( ) ;
2222
2323export const postUpdatePassword = async ( data : IUserUpdatePassword ) => usersApi . updateRecoverPassword ( data . id , {
2424 token : data . token ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const security: Module<SecurityState, State> = {
2626 actions : {
2727 async set ( context , data ) {
2828 try {
29- await apiUser . putSecurity ( data ) ;
29+ await apiUser . setSessionRecordStatus ( data ) ;
3030 context . commit ( "setSecurity" , data . status ) ;
3131 } catch ( error ) {
3232 console . error ( error ) ;
@@ -36,7 +36,7 @@ export const security: Module<SecurityState, State> = {
3636
3737 async get ( context ) {
3838 try {
39- const res = await apiUser . getSecurity ( ) ;
39+ const res = await apiUser . getSessionRecordStatus ( ) ;
4040 context . commit ( "setSecurity" , res . data ) ;
4141 } catch ( error ) {
4242 console . error ( error ) ;
You can’t perform that action at this time.
0 commit comments