forked from ubergesundheit/dialogmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate config for actionmailer and make confirmation usable
- Loading branch information
1 parent
1b52fb2
commit 2df57ef
Showing
15 changed files
with
203 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class ConfirmationsController < Devise::ConfirmationsController | ||
|
||
private | ||
|
||
def after_confirmation_path_for(resource_name, resource) | ||
'/finish_confirmation.html' | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
class UserSerializer < ActiveModel::Serializer | ||
attributes :id, :email, :name | ||
attributes :id, :email, :name, :confirmed | ||
|
||
def confirmed | ||
object.confirmed? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!!! 5 | ||
%html{ :"ng-app" => "DialogMapApp" } | ||
%head | ||
%meta{:charset => "utf-8"} | ||
%title DialogMap | ||
%meta{:content => "Supporting public deliberation through spatially referenced dialogues", :name => "description"}/ | ||
%meta{:content => "Gerald Pape", :name => "author"}/ | ||
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/ | ||
%meta{:content => "width=device-width, initial-scale=1.0, maximum-scale=1.0", :name => "viewport"} | ||
%link{rel: "icon", href: "favicon.png", type: "image/png"} | ||
<style>#add-email{width: 400px;margin:auto}input{text-align: center;margin: auto;display: block;}#user_email{width: 100%;}p.help-block{text-align: justify;}p.no-spam{text-align:center;}</style> | ||
= csrf_meta_tags | ||
%body | ||
= yield |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#add-email | ||
%h2 Eine Sache noch.. | ||
= form_for(current_user, :as => 'user', :url => finish_signup_path(current_user), :html => { role: 'form'}) do |f| | ||
- if @show_errors && current_user.errors.any? | ||
#error_explanation | ||
Fehler: | ||
- current_user.errors.full_messages.each do |msg| | ||
= msg | ||
%p.help-block Leider wird bei der Authentifizierung mit Twitter keine E-Mail Adresse mitgeschickt. Bitte vervollständige sie an dieser Stelle, damit andere Benutzer dich eindeutig identifizieren können. | ||
= current_user.name | ||
#form-group | ||
= f.label :email | ||
#controls | ||
= f.text_field :email, :autofocus => true, :value => '', class: 'form-control', placeholder: '[email protected]' | ||
%p.no-spam Es wird kein Spam versendet! | ||
#actions | ||
= f.submit 'Speichern und Fortfahren' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
# Configure the e-mail address which will be shown in Devise::Mailer, | ||
# note that it will be overwritten if you use your own mailer class | ||
# with default "from" parameter. | ||
config.mailer_sender = '[email protected]' | ||
config.mailer_sender = ENV["EMAIL_FROM"] | ||
|
||
# Configure the class responsible to send e-mails. | ||
# config.mailer = 'Devise::Mailer' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,9 @@ OAUTH_TWITTER_KEY=swaghettiYolonaise | |
OAUTH_TWITTER_SECRET=swaghettiYolonaise | ||
OAUTH_GOOGLE_KEY=swaghettiYolonaise | ||
OAUTH_GOOGLE_SECRET=swaghettiYolonaise | ||
HOSTNAME=localhost:3000 | ||
SMTP_HOST=smtp.mandrillapp.com | ||
SMTP_PORT=25 | ||
SMTP_USER=SOMEUSER | ||
SMTP_PASSWORD=SOMEPASS | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Confirmation Redirect</title> | ||
<style> | ||
p { | ||
display: block; | ||
text-align: center; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Vielen Dank! Dein Account ist nun aktiviert.<br />Du kannst diese Seite jetzt schließen, oder <a href="/">hier</a> klicken um direkt zur DialogMap zu gehen.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters