Add reset password & UI change

This commit is contained in:
Qolzam
2017-11-12 15:31:54 +07:00
parent 9ffd6a1e40
commit 55789967eb
22 changed files with 731 additions and 374 deletions

View File

@@ -40,5 +40,12 @@ export interface IAuthorizeService {
*
* @memberof IAuthorizeService
*/
onAuthStateChanged: (callBack: (user: User) => void)
onAuthStateChanged: (callBack: (user: User) => void) => void
/**
* Reset user password
*
* @memberof IAuthorizeService
*/
resetPassword: (email: string) => Promise<void>
}

View File

@@ -12,7 +12,7 @@ export interface ICommentService {
addComment: (postId: string, comment: Comment) => Promise<string>
getComments: (callback: (resultComments: { [postId: string]: { [commentId: string]: Comment } }) => void) => void
updateComment: (userId: string, postId: string, comment: Comment) => Promise<void>
updateComment: (commentId: string, postId: string, comment: Comment) => Promise<void>
deleteComment: (commentId: string, postId: string) => Promise<void>
}