Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to register a new user #30

Closed
roelveldhuizen opened this issue Jun 19, 2012 · 5 comments
Closed

How to register a new user #30

roelveldhuizen opened this issue Jun 19, 2012 · 5 comments

Comments

@roelveldhuizen
Copy link

What kind of key is required for the registration form?

@asm89
Copy link
Contributor

asm89 commented Jun 19, 2012

What do you mean with what kind of key is required?

@roelveldhuizen
Copy link
Author

The route /registration/{key} requires a key. I quess it is the time stamp.

Everytime I, try to, pop the registration form Cannot register an account. Is thrown. I assumed it hat to do with the key. However, I added some, good old echo's



        if (!$connect || $hasUser || !($error instanceof AccountNotLinkedException) || (time() - $key > 300)) {
            // todo: fix this
            if(!$connect) echo '1';
            if(!($error instanceof AccountNotLinkedException)) echo '2';
            if($hasUser) echo '3';
            if((time() - $key > 300)) echo '4';
            throw new \Exception('Cannot register an account.');
        }

And it seems is false

@asm89
Copy link
Contributor

asm89 commented Jun 19, 2012

Well, that url is currently one time only for security matters. You shouldn't need to do anything with the key yourself?

@roelveldhuizen
Copy link
Author

Ah! I know what I did wrong.

    connect: ~

Was not in my configuration and thus registration, via connect went wrong. I, therefore, started to search for using the registration directly. Which I should not have done ;-)

@asm89
Copy link
Contributor

asm89 commented Jun 19, 2012

Ah ok. :) Glad you found out. I hope I have time to complete the docs some day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants