Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Can not signup with user, and manual create user doesn't work #1

Open
phil88530 opened this issue Apr 2, 2016 · 11 comments
Open

Can not signup with user, and manual create user doesn't work #1

phil88530 opened this issue Apr 2, 2016 · 11 comments

Comments

@phil88530
Copy link

Hi:

I've finally got bonsalERP open on my website, but when I got to the sign_up page, it auto goes into the sessions login page, and even I have create a new user in consol, with active true, it still never show the signup page, nor I can login using my created user account

@boriscy
Copy link
Contributor

boriscy commented Apr 2, 2016

Can u please give me the url for your site?
El 2/4/2016 13:45, "YuFei Zhu" [email protected] escribió:

Hi:

I've finally got bonsalERP open on my website, but when I got to the
sign_up page, it auto goes into the sessions login page, and even I have
create a new user in consol, with active true, it still


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1

@phil88530
Copy link
Author

Hi, I am trying on my local, but I can show you some screen shots, as I don't have any errors pop, and I did no change after staging git clone from you web

Sent from my iPhone

On 2 Apr 2016, at 22:24, Boris Barroso [email protected] wrote:

Can u please give me the url for your site?
El 2/4/2016 13:45, "YuFei Zhu" [email protected] escribió:

Hi:

I've finally got bonsalERP open on my website, but when I got to the
sign_up page, it auto goes into the sessions login page, and even I have
create a new user in consol, with active true, it still


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@phil88530
Copy link
Author

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it still defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login page localhost:3000, so I never see the sign_up page,

screen shot 2016-04-04 at 11 08 28

@boriscy
Copy link
Contributor

boriscy commented Apr 4, 2016

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

@phil88530
Copy link
Author

Hi: I tried this, and it seems my user isn’t activated, even the activate = true

I had User.first finding the following content:

#<User id: 1, email: "[email protected]", first_name: nil, last_name: nil, phone: nil, mobile: nil, website: nil, description: nil, encrypted_password: "$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt: "$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token: "hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at: nil, confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil, reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count: 0, last_sign_in_at: nil, change_default_password: false, address: nil, active: true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49", updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:22, Boris Barroso [email protected] wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)

@boriscy
Copy link
Contributor

boriscy commented Apr 4, 2016

do you have installed mailcatcher, please do so gem install mailcatcher and
try a new registration going to http://yourlocalurl/registrations/new

Remember that you must change your /etc/hosts file to enable with somthing
like

127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

2016-04-04 9:32 GMT-04:00 YuFei Zhu [email protected]:

Hi: I tried this, and it seems my user isn’t activated, even the activate
= true

I had User.first finding the following content:

#<User id: 1, email: "[email protected]", first_name: nil, last_name:
nil, phone: nil, mobile: nil, website: nil, description: nil,
encrypted_password:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token:
"hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at: nil,
confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil,
reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count: 0,
last_sign_in_at: nil, change_default_password: false, address: nil, active:
true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49",
updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:22, Boris Barroso [email protected]
wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
<
https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205204857>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205294092>


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

@phil88530
Copy link
Author

Hi:

I have, and I’ve added the routings to the host as well, I looked at rake:routes and the urls with registration and signup are available. But

but when I try:

http://bonsai.localhost.bom/sign_up http://bonsai.localhost.bom/sign_up
or
http://app.localhost.bom/registrations/new http://app.localhost.bom/registrations/new

I got:
Not Found

The requested URL /registrations/new was not found on this server.

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:40, Boris Barroso [email protected] wrote:

do you have installed mailcatcher, please do so gem install mailcatcher and
try a new registration going to http://yourlocalurl/registrations/new

Remember that you must change your /etc/hosts file to enable with somthing
like

127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

2016-04-04 9:32 GMT-04:00 YuFei Zhu [email protected]:

Hi: I tried this, and it seems my user isn’t activated, even the activate
= true

I had User.first finding the following content:

#<User id: 1, email: "[email protected]", first_name: nil, last_name:
nil, phone: nil, mobile: nil, website: nil, description: nil,
encrypted_password:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token:
"hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at: nil,
confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil,
reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count: 0,
last_sign_in_at: nil, change_default_password: false, address: nil, active:
true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49",
updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:22, Boris Barroso [email protected]
wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
<
https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205204857>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205294092>


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)

@boriscy
Copy link
Contributor

boriscy commented Apr 5, 2016

Have you configured your /etc/hosts file, maybe in OSX this is in another
place, try to look and edit to add any company name for example
yuefui.localhost.bom

127.0.0.1 yuefui.localhost.bom
127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

Then the uerls should work, also add the port to the url,
http://app.localhost.bom:3000/registrations/new
http://app.localhost.bom/registrations/new
remember rails in dev mode works on that port

2016-04-05 7:31 GMT-04:00 YuFei Zhu [email protected]:

Hi:

I have, and I’ve added the routings to the host as well, I looked at
rake:routes and the urls with registration and signup are available. But

but when I try:

http://bonsai.localhost.bom/sign_up http://bonsai.localhost.bom/sign_up
or
http://app.localhost.bom/registrations/new <
http://app.localhost.bom/registrations/new>

I got:
Not Found

The requested URL /registrations/new was not found on this server.

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:40, Boris Barroso [email protected]
wrote:

do you have installed mailcatcher, please do so gem install mailcatcher
and
try a new registration going to http://yourlocalurl/registrations/new

Remember that you must change your /etc/hosts file to enable with
somthing
like

127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

2016-04-04 9:32 GMT-04:00 YuFei Zhu [email protected]:

Hi: I tried this, and it seems my user isn’t activated, even the
activate
= true

I had User.first finding the following content:

#<User id: 1, email: "[email protected]", first_name: nil,
last_name:
nil, phone: nil, mobile: nil, website: nil, description: nil,
encrypted_password:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token:
"hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at:
nil,
confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil,
reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count:
0,
last_sign_in_at: nil, change_default_password: false, address: nil,
active:
true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49",
updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:22, Boris Barroso [email protected]
wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it
    still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
<

https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#1 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205297168>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205299448>


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

@phil88530
Copy link
Author

Hi:

I finally found what went wrong, what I did:

  1. I go to routes.rb, commented the root
    2.I try register,and I got:
    def check_allow_registration
    unless ALLOW_REGISTRATIONS
    redirect_to root_path, alert: 'Llegamos a un limite de registros muy pronto ampliaremos nuestra capacidad' and return
    end
    end

So I guess it is because of an registration allowed = false somewhere in the code :)

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 5, 2016, at 14:20, Boris Barroso [email protected] wrote:

Have you configured your /etc/hosts file, maybe in OSX this is in another
place, try to look and edit to add any company name for example
yuefui.localhost.bom

127.0.0.1 yuefui.localhost.bom
127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

Then the uerls should work, also add the port to the url,
http://app.localhost.bom:3000/registrations/new
http://app.localhost.bom/registrations/new
remember rails in dev mode works on that port

2016-04-05 7:31 GMT-04:00 YuFei Zhu [email protected]:

Hi:

I have, and I’ve added the routings to the host as well, I looked at
rake:routes and the urls with registration and signup are available. But

but when I try:

http://bonsai.localhost.bom/sign_up http://bonsai.localhost.bom/sign_up
or
http://app.localhost.bom/registrations/new <
http://app.localhost.bom/registrations/new>

I got:
Not Found

The requested URL /registrations/new was not found on this server.

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:40, Boris Barroso [email protected]
wrote:

do you have installed mailcatcher, please do so gem install mailcatcher
and
try a new registration going to http://yourlocalurl/registrations/new

Remember that you must change your /etc/hosts file to enable with
somthing
like

127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

2016-04-04 9:32 GMT-04:00 YuFei Zhu [email protected]:

Hi: I tried this, and it seems my user isn’t activated, even the
activate
= true

I had User.first finding the following content:

#<User id: 1, email: "[email protected]", first_name: nil,
last_name:
nil, phone: nil, mobile: nil, website: nil, description: nil,
encrypted_password:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token:
"hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at:
nil,
confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil,
reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count:
0,
last_sign_in_at: nil, change_default_password: false, address: nil,
active:
true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49",
updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 4, 2016, at 15:22, Boris Barroso [email protected]
wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu [email protected]:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it
    still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
<

https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#1 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205297168>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205299448>


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)

@phil88530
Copy link
Author

Hi Again:

I’ve now added allow_registraton: true to the secret.yml and it now works :)

One more question, where can I setup the multi-language things, so I don’t have to google translate my page every time. I know threes a language setting in the initilizaer, but it doesn’t work. :(

anywhere straight in the config ruby file I can do the setup?

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 5, 2016, at 14:41, YuFei Zhu [email protected] wrote:

Hi:

I finally found what went wrong, what I did:

  1. I go to routes.rb, commented the root
    2.I try register,and I got:
    def check_allow_registration
    unless ALLOW_REGISTRATIONS
    redirect_to root_path, alert: 'Llegamos a un limite de registros muy pronto ampliaremos nuestra capacidad' and return
    end
    end

So I guess it is because of an registration allowed = false somewhere in the code :)

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected]

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/

On Apr 5, 2016, at 14:20, Boris Barroso <[email protected] mailto:[email protected]> wrote:

Have you configured your /etc/hosts file, maybe in OSX this is in another
place, try to look and edit to add any company name for example
yuefui.localhost.bom

127.0.0.1 yuefui.localhost.bom
127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

Then the uerls should work, also add the port to the url,
http://app.localhost.bom:3000/registrations/new http://app.localhost.bom:3000/registrations/new
<http://app.localhost.bom/registrations/new http://app.localhost.bom/registrations/new>
remember rails in dev mode works on that port

2016-04-05 7:31 GMT-04:00 YuFei Zhu <[email protected] mailto:[email protected]>:

Hi:

I have, and I’ve added the routings to the host as well, I looked at
rake:routes and the urls with registration and signup are available. But

but when I try:

http://bonsai.localhost.bom/sign_up http://bonsai.localhost.bom/sign_up <http://bonsai.localhost.bom/sign_up http://bonsai.localhost.bom/sign_up>
or
http://app.localhost.bom/registrations/new http://app.localhost.bom/registrations/new <
http://app.localhost.bom/registrations/new http://app.localhost.bom/registrations/new>

I got:
Not Found

The requested URL /registrations/new was not found on this server.

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected] <mailto:[email protected] mailto:[email protected]>

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/ <http://uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/>

On Apr 4, 2016, at 15:40, Boris Barroso <[email protected] mailto:[email protected]>
wrote:

do you have installed mailcatcher, please do so gem install mailcatcher
and
try a new registration going to http://yourlocalurl/registrations/new http://yourlocalurl/registrations/new

Remember that you must change your /etc/hosts file to enable with
somthing
like

127.0.0.1 app.localhost.bom
127.0.0.1 bonsai.localhost.bom
127.0.0.1 flor.localhost.bom
127.0.0.1 biobolsas.localhost.bom
127.0.0.1 demo.localhost.bom
127.0.0.1 amaru.localhost.bom
127.0.0.1 violeta.localhost.bom
127.0.0.1 lucas.localhost.bom
127.0.0.1 karina.localhost.bom

2016-04-04 9:32 GMT-04:00 YuFei Zhu <[email protected] mailto:[email protected]>:

Hi: I tried this, and it seems my user isn’t activated, even the
activate
= true

I had User.first finding the following content:

#<User id: 1, email: "[email protected] mailto:[email protected]", first_name: nil,
last_name:
nil, phone: nil, mobile: nil, website: nil, description: nil,
encrypted_password:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSOOD25rnpreU.T0wWkoYqXt...", password_salt:
"$2a$10$aD1RmjSnSf/0AFa7mZ0bSO", confirmation_token:
"hjAuKZqBQelc6taxVyXzJoYGqCXNy6Dm8ae0XAv8kcc", confirmation_sent_at:
nil,
confirmed_at: "2016-04-02 17:40:14", reset_password_token: nil,
reset_password_sent_at: nil, reseted_password_at: nil, sign_in_count:
0,
last_sign_in_at: nil, change_default_password: false, address: nil,
active:
true, auth_token: nil, rol: nil, created_at: "2016-04-02 17:38:49",
updated_at: "2016-04-02 17:40:18", old_emails: []>

Best Regards

YuFei (Phil) Zhu

(Msc) Adv Computer Science - Agent Technology 10-11
(Bsc Hons) Computer Science 07-10
The University of Bath

Cel (DK): +45 25551500
Cel (UK): +44 (0)7725115456
Cel (CN): +86 13512501588

[email protected] mailto:[email protected] <mailto:[email protected] mailto:[email protected]>

uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/ <http://uk.linkedin.com/in/philzhu/ http://uk.linkedin.com/in/philzhu/>

On Apr 4, 2016, at 15:22, Boris Barroso <[email protected] mailto:[email protected]>
wrote:

I understand, you can login to your console and

u = User.find_by(email: '[email protected] mailto:[email protected]')
u.links

Look for

u.links.map(&:active)
#or you can active each one
u.links {|l| l.active = true; l.save}

That should work

2016-04-04 5:09 GMT-04:00 YuFei Zhu <[email protected] mailto:[email protected]>:

Here's the example, I'm using mac os x, and I do see:

  • in the application.rb you have the language set to :en, but it
    still
    defaults to :es
  • when I visit localhost:3000/sign_up, it redirects me to the login
    page localhost:3000, so I never see the sign_up page,

[image: screen shot 2016-04-04 at 11 08 28]
<

https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png https://cloud.githubusercontent.com/assets/947049/14243398/a15537d6-fa55-11e5-877e-17de2d21700b.png


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
#1 (comment) #1 (comment)

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com/ <http://bonsaierp.com http://bonsaierp.com/>

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#1 (comment) #1 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<
#1 (comment) https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205297168>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com/ <http://bonsaierp.com http://bonsaierp.com/>

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
#1 (comment) https://github.com/bonsaiERP/bonsaiERP/issues/1#issuecomment-205299448>


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
<#1 (comment) #1 (comment)>

Boris Barroso
Founder and CTO http://bonsaierp.com http://bonsaierp.com/ <http://bonsaierp.com http://bonsaierp.com/>

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)

@boriscy
Copy link
Contributor

boriscy commented Apr 5, 2016

You are right, I had the config/secrets.yml file with thisallow_registration=true now I have comented this on the registrations_controller son it won't ask anymore, this is because bonsaiERP was not open source in the begining, thanks a lot check the commit 34bbab6

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

No branches or pull requests

2 participants