@@ -75,6 +75,7 @@ module.exports = function (log, config, bounces, statsd) {
7575 passwordForgotOtp : 'password-forgot-otp' ,
7676 passwordReset : 'password-reset-success' ,
7777 passwordResetAccountRecovery : 'password-reset-account-recovery-success' ,
78+ passwordResetRecoveryPhone : 'password-reset-recovery-phone' ,
7879 passwordResetWithRecoveryKeyPrompt : 'password-reset-w-recovery-key-prompt' ,
7980 postAddLinkedAccount : 'account-linked' ,
8081 postRemoveSecondary : 'account-email-removed' ,
@@ -136,6 +137,7 @@ module.exports = function (log, config, bounces, statsd) {
136137 passwordForgotOtp : 'password-reset' ,
137138 passwordReset : 'password-reset' ,
138139 passwordResetAccountRecovery : 'manage-account' ,
140+ passwordResetRecoveryPhone : 'manage-account' ,
139141 passwordResetWithRecoveryKeyPrompt : 'create-recovery-key' ,
140142 postAddLinkedAccount : 'manage-account' ,
141143 postRemoveSecondary : 'account-email-removed' ,
@@ -1696,6 +1698,38 @@ module.exports = function (log, config, bounces, statsd) {
16961698 } ) ;
16971699 } ;
16981700
1701+ Mailer . prototype . passwordResetRecoveryPhoneEmail = function ( message ) {
1702+ const templateName = 'passwordResetRecoveryPhone' ;
1703+ const links = this . _generateSettingLinks ( message , templateName ) ;
1704+ const [ time , date ] = this . _constructLocalTimeString (
1705+ message . timeZone ,
1706+ message . acceptLanguage
1707+ ) ;
1708+
1709+ const headers = {
1710+ 'X-Link' : links . link ,
1711+ } ;
1712+
1713+ return this . send ( {
1714+ ...message ,
1715+ headers,
1716+ template : templateName ,
1717+ templateValues : {
1718+ date,
1719+ device : this . _formatUserAgentInfo ( message ) ,
1720+ privacyUrl : links . privacyUrl ,
1721+ link : links . link ,
1722+ resetLink : links . resetLink ,
1723+ resetLinkAttributes : links . resetLinkAttributes ,
1724+ supportLinkAttributes : links . supportLinkAttributes ,
1725+ supportUrl : links . supportUrl ,
1726+ twoFactorSettingsLink : links . twoFactorSettingsLink ,
1727+ twoFactorSettingsLinkAttributes : links . twoFactorSettingsLinkAttributes ,
1728+ time,
1729+ } ,
1730+ } ) ;
1731+ } ;
1732+
16991733 Mailer . prototype . postRemoveRecoveryPhoneEmail = function ( message ) {
17001734 const templateName = 'postRemoveRecoveryPhone' ;
17011735 const links = this . _generateLinks (
@@ -3054,7 +3088,6 @@ module.exports = function (log, config, bounces, statsd) {
30543088 templateName ,
30553089 content
30563090 ) {
3057- console . log ( link ) ;
30583091 const parsedLink = new URL ( link ) ;
30593092
30603093 Object . keys ( query ) . forEach ( ( key ) => {
0 commit comments