@@ -74,12 +74,12 @@ func ResetPasswordUsingTokenWithContext(token string, newPassword string, userCo
7474 return (* instance .RecipeImpl .ResetPasswordUsingToken )(token , newPassword , userContext )
7575}
7676
77- func UpdateEmailOrPasswordWithContext (userId string , email * string , password * string , userContext supertokens.UserContext ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
77+ func UpdateEmailOrPasswordWithContext (userId string , email * string , password * string , applyPasswordPolicy * bool , userContext supertokens.UserContext ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
7878 instance , err := GetRecipeInstanceOrThrowError ()
7979 if err != nil {
8080 return epmodels.UpdateEmailOrPasswordResponse {}, nil
8181 }
82- return (* instance .RecipeImpl .UpdateEmailOrPassword )(userId , email , password , userContext )
82+ return (* instance .RecipeImpl .UpdateEmailOrPassword )(userId , email , password , applyPasswordPolicy , userContext )
8383}
8484
8585func SendEmailWithContext (input emaildelivery.EmailType , userContext supertokens.UserContext ) error {
@@ -114,8 +114,8 @@ func ResetPasswordUsingToken(token string, newPassword string) (epmodels.ResetPa
114114 return ResetPasswordUsingTokenWithContext (token , newPassword , & map [string ]interface {}{})
115115}
116116
117- func UpdateEmailOrPassword (userId string , email * string , password * string ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
118- return UpdateEmailOrPasswordWithContext (userId , email , password , & map [string ]interface {}{})
117+ func UpdateEmailOrPassword (userId string , email * string , password * string , applyPasswordPolicy * bool ) (epmodels.UpdateEmailOrPasswordResponse , error ) {
118+ return UpdateEmailOrPasswordWithContext (userId , email , password , applyPasswordPolicy , & map [string ]interface {}{})
119119}
120120
121121func SendEmail (input emaildelivery.EmailType ) error {
0 commit comments