Sending Active Admin email when creating new Active Admin user - ruby-on-rails-3

I am using Active Admin in my Rails Application. I have been able to set it up and use default user but I cannot add new User. When I go to Add New Admin User it lets me put in a username but never sends the email to setup a password. How does Active Admin send the default email out of a development configuration to be able to setup a password for my users?

Active Admin, by default, uses Devise for authentication. If you enable :confirmable it'll email that user to verify the creation of their account. You can read details on enabling :confirmable on an existing setup here: https://github.com/plataformatec/devise/wiki/How-To%3a-Add-%3aconfirmable-to-Users

Related

Auth0 - how to create a user without a password, or how to include password in verification email

We have a web app (SPA Angular app talking to a .Net Core Web API) which uses Auth0 as the authentication server.
Now, I'm not sure if this would be an "invite flow" or "invite-only flow", or something else, but basically, a user will go to our web app, and create an account on our system. Our API then creates an Auth0 account for this user using the Auth0 Management API. This user is then considered the Administrator. She can then create as many users as she wants for her staff. For each user she creates, our API creates an Auth0 user using the Management API.
Since, as far as I'm aware, a user must be assigned a password at the moment of creation (i.e. you cannot create a user without a password), the administrator must pick a password for each user she creates.
Additionally, each time a user is created, Auth0 automatically sends out an email to that user asking them to verify their email address. When the user follows this link, it takes them to the Auth0 login screen where they have to fill in their email address and password.
My problem is that, unless the administrator tells them what password she picked for them, there's no way of them knowing.
My question is: is there a way to defer picking a password until the user logs in for the first time? So, when the administrator creates the user, she doesn't pick a password. Then, upon the user's first login, they pick their own password.
Alternatively, if a password MUST be set at the moment of creating the user, could this password be displayed to the user in the email verification email? I would essentially treat this as a temporary password, as I would also require the user to change their password upon first logon in this case.,
Thanks

How to create new email account on WHMCS client area

I think need some help to do that. My WHMCS system is create Cpanel user. When i login as client I'm showing login Webmail, Login Cpanel, change password cpanel and all feature is working fine.
But i want to create email account but i don't add it. How to create email account on cpanel via WHMCS? Any idea.
Adding an email account is a built in feature of the cPanel module in the six theme of WHMCS. If you want to see how to extend this to add additional options or do more control, you can check out this presentation I made for the cPanel Conference:
https://github.com/n8whnp/cPconf-2015/blob/master/cP-Conf-2015-Customizing-WHMCS.pdf
No, You can not create mail account through WHMCS. You need to login your cPanel to create mail account OR Access server through SSH with the root user login details and then create mail account through cPanel script(/scripts/addpop).
You can not create email account directly from WHMCS. You have to log in to cPanel first from direct URL or from client area and then you can create the email account from Email Section.
Also, you can create email account by SSH Access.

IBM Domino Expired Internet Password

I have implemented password expiry for my website. If a user has an expired password, then I would like to redirect the user to a specific form where I then resend a random password.
To do this, I have:
setup a form with a WebQuerySave agent that changes the password using the AdminP ChangeHTTPPassword method
set the custom form to load in the domcfg database
made the form a public access form, and the agent runs on behalf of an admin account
The issue I have, is that the user appears to get stuck in a loop of wanting the password changed (names.nsf?ChangePassword) and will not even let me redirect the user to complete a new form from that will then kick off the password reset etc. This includes a link to my password reminder page that sends the user their password.
These are external users, and I am using directory assistance. I do not use the ID vault here.
Is it possible to get out of this loop?
If not, then is it possible to add an agent to run when the standard password reset works?

Liferay and user password during the export into OpenLDAP

I have a question about Liferay.
I have configuate my system with Liferay + Jasig CAS Authentication and OpenLDAP.
I can authenticate my user correctly and I can import user account from LDAP (Ldap import).
I have also configurate the user export to OpenLDAP..so, now I can export an account when this will be create.
Infact I can see this new account in my OpenLDAP server.
When Liferay create a new account it generate a random password for this new account (for example 4hdsdsh) and the user receive an e-mail after the registration.
The problem is: I my OpenLDAP server this password does not seem to be equal to the one just generated by Liferay..
So, the new user will never be able to authenticate into my Liferay (because I use CAS + LDAP).
I also found a funny/strange thing: If I modify this new password in Liferay (using an administrator account) I see this password correctly into my OpenLDAP server and so, the user can finally log into my Liferay..
I am not sure but it seems while user registration it is just exporting the fields entered by user in registration screen and since the password is auto generated after registration, it is not exported to LDAP and might be blank till User has not updated his password by Logging in.
You can debug this class PortalLDAPExporterImpl.Java and also watch user detail in LDAP via jxplorer whats the password & user status as well. If password is blank you could extend class and your logic to pass auto generated or default password for first time case.
This is a bug of Liferay:
See following issue: https://issues.liferay.com/browse/LPS-43045

send custom confirmation mail with username and password in devise

I want to be able to send a users username and password when a user is creating anoter user in Devise. When say, admin creates a new user. A welcome mail should go with his username and password. The catch is it should only happen for users created by admin and other users should get regular devise confirmation mail. It will be greated if we are able to skip confirmation for users created by admin alone. Any ideas?