You are here: Noosfero>Dev>Configuration>SetEnvAdmin (26 Aug 2016, FernandoOliveira) EditAttach

Set the Environment Admin

You must use the Noosfero Console to follow this steps.

To create a new administrator user, run the following, replacing information (for example, e-mail and password should be replaced):
user = User.create(:login => 'adminuser', :email => 'admin@example.com', :password => 'admin', :password_confirmation => 'admin', :environment => Environment.default)

If you have configured your server to send email, you will receive an e-mail with instructions to activate your new account, if not, you can do that using the console:
user.activate

To add a person user as administrador, use the add_admin method as following:
Environment.default.add_admin user.person

Note If you have more than one environment, use Environment.find(id), where id is the ID number of the environment, instead of or Environment.default.

Add comment
You need to login to be able to comment.
 
Topic revision: r15 - 26 Aug 2016, FernandoOliveira

irc Talk with Devs Now!

 
Translations: English
Search on Docs:
   
ActionItem Search:

Copyright © 2007-2018 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres