[GeoNode-users] User Account Registration

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Tue Jul 10 12:43:41 PDT 2018


Hi Alessio,

I am sorry to insist on this topic, I wonder if another GeoNode at 2.8.0 user
has faced the same problem while configuring users email account. I am
using GeoNode Production (/home/geonode/...) and GeoNode DevMode
(/home/my_geonode/...). I realized that the files in
./geo/Envs/geonode/lib/python2.7/site-packages/django/conf/global_settings.py
and
./geo/Envs/my_geonode/lib/python2.7/site-packages/django/conf/global_settings.py
are not retrieving the variable's value in the settings.py:

# prevent signing up by default
ACCOUNT_OPEN_SIGNUP = True
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = 'optional'
ACCOUNT_EMAIL_CONFIRMATION_EMAIL = True
ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = True
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
ACCOUNT_APPROVAL_REQUIRED = True

#Define email service on GeoNode
EMAIL_ENABLE = True

REGISTRATION_OPEN = True
if EMAIL_ENABLE:
    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#    EMAIL_HOST = 'localhost'
#    EMAIL_PORT = 25
    EMAIL_HOST = 'smtp.sipam.gov.br'
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'uap.ccg.geonode'
    EMAIL_HOST_PASSWORD = 'passwd'
    EMAIL_USE_TLS = True
    DEFAULT_FROM_EMAIL = 'uap.ccg.geonode at sipam.gov.br'

I set each variable's value .in ../django/conf/global_settings.py according
to the configuration above, but I am still not receiving any confirmation
e-mail sent to uap.ccg.geonode at sipam.gov.br.

If anyone else has faced this problem before, and could share some hints,
it will be very appreciated.

Thank you very much for your time and best regards

Julierme


On Mon, Jul 9, 2018 at 7:34 PM, Julierme Pinheiro <
juliermeopensourcedeveloper at gmail.com> wrote:

> I tested with REGISTRATION_OPEN = True and it did not work either.
>
> On Mon, Jul 9, 2018 at 6:22 PM, Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com> wrote:
>
>> Page 864 of http://media.readthedocs.org/pdf/geonode/master/geonode.pdf
>> says to set REGISTRATION_OPEN = True, but this variable is not in the
>> settings. I wonder if it is still necessary to do that.
>>
>> On Mon, Jul 9, 2018 at 5:24 PM, Julierme Pinheiro <
>> juliermeopensourcedeveloper at gmail.com> wrote:
>>
>>> I also changed the ServerAdmin from webmaster at localhost to ServerAdmin
>>> gis.geonode at sipam.gov.br
>>>
>>> But the error remains.
>>>
>>>
>>>
>>> On Mon, Jul 9, 2018 at 4:27 PM, Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com> wrote:
>>>
>>>> Additional information, after changing the settings config to e-mail:
>>>> if EMAIL_ENABLE:
>>>>     EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
>>>> #    EMAIL_HOST = 'localhost'
>>>> #    EMAIL_PORT = 25
>>>>     EMAIL_HOST = 'smtp.sipam.gov.br'
>>>>     EMAIL_PORT = 587
>>>>     EMAIL_HOST_USER = 'gis.geonode'
>>>>     EMAIL_HOST_PASSWORD = 'password'
>>>>     EMAIL_USE_TLS = True
>>>>     DEFAULT_FROM_EMAIL = 'gis.geonode at sipam.gov.br'
>>>>
>>>>
>>>>
>>>> the error.log is recording this information:
>>>>
>>>> MIME-Version: 1.0
>>>> [Mon Jul 09 15:52:24.716632 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Content-Type: text/plain; charset="utf-8"
>>>> [Mon Jul 09 15:52:24.716641 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Content-Transfer-Encoding: 7bit
>>>> [Mon Jul 09 15:52:24.716648 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Subject: [my_geonode] Please confirm email address for
>>>> my_geonode
>>>> [Mon Jul 09 15:52:24.716655 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] From: webmaster at localhost
>>>> [Mon Jul 09 15:52:24.716662 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] To: julierme.pinheiro at sipam.gov.br
>>>> [Mon Jul 09 15:52:24.716669 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Date: Mon, 09 Jul 2018 18:52:24 -0000
>>>> [Mon Jul 09 15:52:24.716676 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Message-ID: <20180709185224.20896.52296 at gis>
>>>> [Mon Jul 09 15:52:24.716684 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592]
>>>> [Mon Jul 09 15:52:24.716690 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Hello from my_geonode!
>>>> [Mon Jul 09 15:52:24.716697 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592]
>>>> [Mon Jul 09 15:52:24.716704 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] You're receiving this e-mail because user admin has given
>>>> yours as an e-mail address to connect their account.
>>>> [Mon Jul 09 15:52:24.716712 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592]
>>>> [Mon Jul 09 15:52:24.716719 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] To confirm this is correct, go to
>>>> http://localhost/account/confirm-email/OQ:1fcbGq:9wEOIi2Cdet
>>>> SmYUk4TKLrSiBffM/
>>>> [Mon Jul 09 15:52:24.716726 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592]
>>>> [Mon Jul 09 15:52:24.716733 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] Thank you from my_geonode!
>>>> [Mon Jul 09 15:52:24.716740 2018] [wsgi:error] [pid 20896:tid
>>>> 140560217294592] localhost:8000
>>>>
>>>>  Any hint in what is causing these errors will be very appreciated.
>>>>
>>>> Julierme
>>>>
>>>>
>>>> On Mon, Jul 9, 2018 at 12:47 PM, Julierme Pinheiro <
>>>> juliermeopensourcedeveloper at gmail.com> wrote:
>>>>
>>>>> Also, through the admin web interface, my primary e-mail is set to
>>>>> juliermeopensourcedeveloper at gmail.com, I clicked on the re-send
>>>>> Verification button, but I do not receive any e-mail. And there is no
>>>>> e-mails in the spam box either.
>>>>>
>>>>>
>>>>> On Mon, Jul 9, 2018 at 12:39 PM, Julierme Pinheiro <
>>>>> juliermeopensourcedeveloper at gmail.com> wrote:
>>>>>
>>>>>> HI Alessio,
>>>>>>
>>>>>> Thank you very much for your reply. I want the admin approving the
>>>>>> new accounts (ACCOUNT_APPROVAL_REQUIRED = True).
>>>>>>
>>>>>> After using the settings in the previous e-mail, I created some new
>>>>>> accounts, but the admin does not get any information about new registered
>>>>>> accounts and neither it is requested to approve them.
>>>>>>
>>>>>> Just to have an idea how it works, I registered to GeoNode Demo
>>>>>> <http://master.demo.geonode.org/>, but by now, I have not gotten any
>>>>>> confirmation e-mail, and I am unable to upload data do the site.
>>>>>>
>>>>>> My question is if I am missing any configuration in order to have
>>>>>> admin approving the new accounts.
>>>>>>
>>>>>> I appreciated your time.
>>>>>>
>>>>>> Julierme
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 9, 2018 at 5:23 AM, Alessio Fabiani <
>>>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>>>>
>>>>>>> Hi Julierme,
>>>>>>> not sure I understood you question, however you are getting that
>>>>>>> message due to this:
>>>>>>>
>>>>>>> ACCOUNT_APPROVAL_REQUIRED = True
>>>>>>>
>>>>>>> If you don't want admins to approve new accounts, you should toggle
>>>>>>> this to False
>>>>>>>
>>>>>>>
>>>>>>> Il giorno ven 6 lug 2018 alle ore 23:07 Julierme Pinheiro <
>>>>>>> juliermeopensourcedeveloper at gmail.com> ha scritto:
>>>>>>>
>>>>>>>> Dear GeoNode users and developers,
>>>>>>>>
>>>>>>>> I am trying to configure user registration for GeoNode at 2.8.0
>>>>>>>> according to page 864 in [1].
>>>>>>>>
>>>>>>>> Find bellow my settings.py:
>>>>>>>>
>>>>>>>> # prevent signing up by default
>>>>>>>> ACCOUNT_OPEN_SIGNUP = True
>>>>>>>> ACCOUNT_EMAIL_REQUIRED = True
>>>>>>>> ACCOUNT_EMAIL_VERIFICATION = 'optional'
>>>>>>>> ACCOUNT_EMAIL_CONFIRMATION_EMAIL = True
>>>>>>>> ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = True
>>>>>>>> ACCOUNT_CONFIRM_EMAIL_ON_GET = True
>>>>>>>> ACCOUNT_APPROVAL_REQUIRED = True
>>>>>>>>
>>>>>>>> and local_settings.py
>>>>>>>>
>>>>>>>> #Define email service on GeoNode
>>>>>>>> EMAIL_ENABLE = True
>>>>>>>>
>>>>>>>> if EMAIL_ENABLE:
>>>>>>>>     EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
>>>>>>>> #    EMAIL_HOST = 'localhost'
>>>>>>>> #    EMAIL_PORT = 25
>>>>>>>>     EMAIL_HOST = 'smtp.gmail.com'
>>>>>>>>     EMAIL_PORT = 587
>>>>>>>>     EMAIL_HOST_USER = 'foo at gmail.com'
>>>>>>>>     EMAIL_HOST_PASSWORD = 'bar'
>>>>>>>>     EMAIL_USE_TLS = True
>>>>>>>>     DEFAULT_FROM_EMAIL = 'my_geonode <no-reply at geonode.org>'
>>>>>>>>
>>>>>>>> When the user get registered the message bellow is displayed:
>>>>>>>>
>>>>>>>> Account Pending Approval
>>>>>>>>
>>>>>>>> We have sent the administrators a notice to approve your account
>>>>>>>> associated with *somebody at gmail.com <somebody at gmail.com>*. If the
>>>>>>>> account is approved, you will receive a confirmation notice.
>>>>>>>>
>>>>>>>> After setting the configuration above, the new user still unable to
>>>>>>>> receive a confirmation e-mail from GeoNode admin and *foo at gmail.com
>>>>>>>> <foo at gmail.com>* does not receive any notification e-mail about
>>>>>>>> new registered users.
>>>>>>>>
>>>>>>>> Also, before entering to this topic, I registered to GeoNode Demo
>>>>>>>> <http://master.demo.geonode.org/>, but I did not receive any
>>>>>>>> confirmation e-mail.
>>>>>>>>
>>>>>>>> I wonder if I am missing any configuration.
>>>>>>>>
>>>>>>>> Any help on that will very appreciated.
>>>>>>>>
>>>>>>>> Thank you for your time in advance
>>>>>>>>
>>>>>>>> Kind regards
>>>>>>>>
>>>>>>>> Julierme
>>>>>>>>
>>>>>>>> [1] http://media.readthedocs.org/pdf/geonode/master/geonode.pdf
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> geonode-users mailing list
>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> ==
>>>>>>>
>>>>>>> GeoServer Professional Services from the experts! Visit
>>>>>>> http://goo.gl/it488V for more information.
>>>>>>> ==
>>>>>>> Ing. Alessio Fabiani
>>>>>>>
>>>>>>> @alfa7691
>>>>>>> Founder/Technical Lead
>>>>>>>
>>>>>>>
>>>>>>> GeoSolutions S.A.S.
>>>>>>> Via di Montramito 3/A -
>>>>>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+-++55054+%C2%A0Massarosa&entry=gmail&source=g>55054
>>>>>>>  Massarosa
>>>>>>> <https://maps.google.com/?q=Via+di+Montramito+3/A+-++55054+%C2%A0Massarosa&entry=gmail&source=g>
>>>>>>> (LU) - Italy
>>>>>>> phone: +39 0584 962313
>>>>>>> fax:     +39 0584 1660272
>>>>>>> mob:   +39 331 6233686
>>>>>>>
>>>>>>>
>>>>>>> http://www.geo-solutions.it
>>>>>>> http://twitter.com/geosolutions_it
>>>>>>> -------------------------------------------------------
>>>>>>>
>>>>>>> Con riferimento alla normativa sul trattamento dei dati personali
>>>>>>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”),
>>>>>>> si precisa che ogni circostanza inerente alla presente email (il suo
>>>>>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>>>>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>>>>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>>>>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>>>>>
>>>>>>>
>>>>>>> This email is intended only for the person or entity to which it is
>>>>>>> addressed and may contain information that is privileged, confidential or
>>>>>>> otherwise protected from disclosure. We remind that - as provided by
>>>>>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>>>>>>> e-mail or the information herein by anyone other than the intended
>>>>>>> recipient is prohibited. If you have received this email by mistake, please
>>>>>>> notify us immediately by telephone or e-mail.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180710/d10d39cc/attachment-0001.html>


More information about the geonode-users mailing list