Notify user about new RS authorizations

This commit is contained in:
Râu Cao
2023-11-20 18:22:28 +01:00
parent c2dae105ff
commit cfd0935bdc
5 changed files with 121 additions and 41 deletions

View File

@@ -5,4 +5,11 @@ class NotificationMailer < ApplicationMailer
@subject = "Sats received"
mail to: @user.email, subject: @subject
end
def remotestorage_auth_created
@user = params[:user]
@auth = params[:auth]
@subject = "New app connected to your storage"
mail to: @user.email, subject: @subject
end
end