cdli / cdlitwostagesignup Goto Github PK
View Code? Open in Web Editor NEWTwo-stage signup process for ZfcUser. Supports Zend\Db and Doctrine! Now up-to-date with latest ZfcUser (as of Oct 24th, 2012)
License: Other
Two-stage signup process for ZfcUser. Supports Zend\Db and Doctrine! Now up-to-date with latest ZfcUser (as of Oct 24th, 2012)
License: Other
hi;
i've installed this module and i acces to user/register i get this message ๐
Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "CdliTwoStageSignup/layout"; resolver could not resolve to a file' in C:\wamppp\www\projetCdliTwoStageSignup\vendor\zendframework\zendframework\library\Zend\View\Renderer\PhpRenderer.php on line 498
would be great to be able to choose smtp email as from config
First of all, I'd like to thank you for the module.
Unfortunately, emails are often recognized as spam when sent by sendmail.
Therefore I'd like to send the mails by a Mailserver using SMTP-Auth.
I tried to implement this feature, but I'm not shure if that is ok.
I changed the following filed:
/**
* SMTP Mail with Auth or use SendMail
*
* Options: 'SMTP-Auth, SendMail'
* Default: SendMail
*
*/
'mailTranfer' => 'SendMail',
//'smtpOption' => array('name' => 'localhost.localdomain',
// 'host' => '127.0.0.1',
// 'connection_class' => 'login',
// 'connection_config' => array(
// 'username' => 'user',
// 'password' => 'pass',
// ),
// ),
ModuleOptions.php
protected $mailTranfer = 'SendMail';
protected $smtpOption = '';
public function setMailTranfer($mailTranfer)
{
$this->mailTranfer = $mailTranfer;
return $this;
}
public function getMailTranfer()
{
return $this->mailTranfer;
}
public function setSmtpOption(array $option)
{
$this->smtpOption = $option;
return $this;
}
public function getSmptOption()
{
return $this->smtpOption;
}
EmailOptionsInterface.php
public function setMailTranfer($mailTranfer);
public function getMailTranfer();
public function setSmtpOption(array $smtpOption);
public function getSmptOption();
EmailVerification.php
use Zend\Mail\Transport\Smtp as SmtpTransport;
use Zend\Mail\Transport\SmtpOptions;
EmailVerification.php
//$this->emailTransport->send($message);
if($this->getEmailMessageOptions()->getMailTranfer() == 'SMTP-Auth'){
$this->setMessageTransport(new SmtpTransport());
$this->emailTransport->setOptions(new SmtpOptions($this->getEmailMessageOptions()->getSmptOption()));
$this->emailTransport->send($message);
}else{
$this->emailTransport->send($message);
}
Maybe there is a more simple way to achive this functionality by overwriting the sendmail-function at this part of the code?
'Zend\Mail\Transport\Sendmail' => function($sm) {
return new \Zend\Mail\Transport\Sendmail();
}
From what I can tell... Whenever an email has been entered in the registration box and inserted into user_signup_email_verification table, trying to re-enter that email before clicking the registration link fails to resend or give any meaningful notice. A bullet point appears below the input box (as if to give a failure message) but there is no message. Email doesn't necessarily have to be sent for this to occur.
If a user does click the email link and register, the module handles it correctly and notifies them that the user already exists.
Hi:
I'm getting the following message after installing the module. Would love to get this resolved - please let me know what you think is causing it. Thanks.
Chris
Warning: Illegal offset type in .\vendor\zendframework\zendframework\library\Zend\I18n\Translator\Translator.php on line 441
Running ZF2 Beta5
The schema_up.mysql.sql contained the following SQL syntax for the creation of the table.
CREATE TABLE user_signup_email_verification
(
request_key VARCHAR(32) NOT NULL,
email_address VARCHAR(255) NOT NULL,
request_time DATETIME NOT NULL,
PRIMARY KEY(request_key),
UNIQUE(email_address)
) ENGINE=InnoDB;
Am I running a wrong version of the mysql.sql script??
Submitting step 1 (verify email) leads to:
Catchable fatal error: Object of class DateTime could not be converted to string in /var/www/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Driver/Pdo/Statement.php on line 256
Been fighting this issue for a while now and can't seem to find a fix. After installation and configuration according to the readme trying to access the /register route throws the following error:
Zend\ServiceManager\Exception\ServiceNotFoundException
File:
C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php:456
Message:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for cdlitwostagesignup_ev_modelmapper
Stack trace:
0 C:\wamp\www\FolioFiler\ZendPAC\vendor\CdliTwoStageSignup\Module.php(81): Zend\ServiceManager\ServiceManager->get('cdlitwostagesig...')
1 [internal function]: CdliTwoStageSignup{closure}(Object(Zend\ServiceManager\ServiceManager), 'cdlitwostagesig...', 'cdlitwostagesig...')
2 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(737): call_user_func(Object(Closure), Object(Zend\ServiceManager\ServiceManager), 'cdlitwostagesig...', 'cdlitwostagesig...')
3 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(869): Zend\ServiceManager\ServiceManager->createServiceViaCallback(Object(Closure), 'cdlitwostagesig...', 'cdlitwostagesig...')
4 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(494): Zend\ServiceManager\ServiceManager->createFromFactory('cdlitwostagesig...', 'cdlitwostagesig...')
5 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(441): Zend\ServiceManager\ServiceManager->create(Array)
6 C:\wamp\www\FolioFiler\ZendPAC\vendor\CdliTwoStageSignup\src\CdliTwoStageSignup\Controller\RegisterController.php(149): Zend\ServiceManager\ServiceManager->get('cdlitwostagesig...')
7 C:\wamp\www\FolioFiler\ZendPAC\vendor\CdliTwoStageSignup\src\CdliTwoStageSignup\Controller\RegisterController.php(22): CdliTwoStageSignup\Controller\RegisterController->getEmailVerificationService()
8 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(83): CdliTwoStageSignup\Controller\RegisterController->emailVerificationAction()
9 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
10 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(460): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
11 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(204): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
12 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
13 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
14 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
15 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(460): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
16 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(204): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
17 C:\wamp\www\FolioFiler\ZendPAC\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(295): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
18 C:\wamp\www\FolioFiler\ZendPAC\public\index.php(16): Zend\Mvc\Application->run()
19 {main}
After installing this I'm getting this when calling the register page:
Notice: Undefined index: cdli-twostagesignup in /var/www/vendor/cdli/CdliTwoStageSignup/Module.php on line 46
Latest ZfcBase, ZfcUser and ZF2 dev-master.
If an existing user attempts to update their email via the "change-email" route, it bypasses the verification process.
Hey !
Do you think it's possible to add support for zfcUser 1.* ?
As more and more zf2 modules need zfcUser 1.0, it became difficult to keep my project dependencies up to date because of the old 0.* dependency.
I don't really know if zfcUser 1.0 made a lot of change which could broke your module, but maybe I could help you to have a look in the next days.
Thanks for your work !
would be helpful to add detailed description to explain what this module does, as it does not behave standardly.
i was expecting to see registration form, and after registration, user would be prompted to visit the link sent in the email to activate his account.
instead, the email request is 1st step in registration.
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.