Now generateing api key via eng_gen script
This commit is contained in:
		@@ -26,4 +26,20 @@ export class MailController {
 | 
			
		||||
        }
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Post('/test')
 | 
			
		||||
    @OpenAPI({ description: "Sends test mails" })
 | 
			
		||||
    async sendTest(@QueryParam("locale") locale: string) {
 | 
			
		||||
        if (!this.initialized) {
 | 
			
		||||
            await this.mailer.init();
 | 
			
		||||
            this.initialized = true;
 | 
			
		||||
        }
 | 
			
		||||
        try {
 | 
			
		||||
            this.mailer.sendTestMail(locale)
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
            console.log(error)
 | 
			
		||||
            throw error;
 | 
			
		||||
        }
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,11 @@
 | 
			
		||||
{
 | 
			
		||||
    "all-rights-reserved": "All rights reserved.",
 | 
			
		||||
    "imprint": "Imprint",
 | 
			
		||||
    "lfk-mail-test": "LfK! - Mail test",
 | 
			
		||||
    "privacy": "Privacy",
 | 
			
		||||
    "subject_reset": "{{copyright_owner}} password reset",
 | 
			
		||||
    "test-mail": "Test mail",
 | 
			
		||||
    "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.",
 | 
			
		||||
    "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to {{recipient_mail}} because someone request a mail test for this mail address."
 | 
			
		||||
  "all-rights-reserved": "All rights reserved.",
 | 
			
		||||
  "imprint": "Imprint",
 | 
			
		||||
  "lfk-mail-test": "LfK! - Mail test",
 | 
			
		||||
  "privacy": "Privacy",
 | 
			
		||||
  "subject_reset": "{copyright_owner} password reset",
 | 
			
		||||
  "test-mail": "Test mail",
 | 
			
		||||
  "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.",
 | 
			
		||||
  "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to {{to_address}} because someone request a mail test for this mail address.",
 | 
			
		||||
  "subject_test": "subject_test"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user