Orchard: Creating a user from the register screen NOT dashboard - orchardcms

Hey Guys…So im using Orchard CMS 1.6 and instead of creating a user/role from the dashboard, I would like the user to register from the home page.
This is done by leaving the ‘username’ and ‘password’ field blank on the home page and clicking ‘Sign In’. They are then navigated to a ‘Log On’ page which displays a ‘Register link’.
This allows the user to enter 4 fields to create an account. ‘Username, Email, Password, and confirm password’. I would like to add additional fields to this form but am having no luck.
I’ve tried to install the profile, Users personal Info, and extended Reg modules.
These add additional fields to creating a user, when the user is created from the dashboard. (Users/ Add new user)…but not to the register screen.
Does anyone have any idea how to add fields to the register screen(access from the home page)?
Thanks for any replies…

tl;dr:
Check out: Extended Registration
Details:
You can accomplish this with combination of the Profile module and the Extended Registration module. By default, the Registration page (Found in Orchard.Users) is hard-coded to display only the four fields you mentioned. Extended Registration takes the Profile part from the Profile module and also displays it on the Registration page.
Build out your registration field to however you want by extending the User content type, though it sounds like you have done this since you have access to these fields via New User in the Admin dashboard.
Note: Extended Registration requires the Profile module.

Related

Azure B2C Linking Different Permissions to Users

We have a problem where individual user are registered to our application but with permission to see a single set of data. These are all setup as local accounts.
At the moment each user is associated with a single set of data.
We now need to be able to link different sets of data to the same user.
After or during login the user would be presented with the options that are linked to their account and it would remember this throughout their session.
We would also need to be able to add new permissions to an account through an API.
What is the best way of achieving this through Azure B2C ideally without using custom policies if possible.
If you want to insert a page during the authentication journey (sign in) which reads the users access ability, and then allow the user to choose one of these options, and then issue that choice in the token, you will need a custom policy. I am assuming that this list could be different for each user ("options that are linked to their account").
If that list of options is stored on the user object, then it needs to be read from the user, and a dynamic radio box selection be presented to the user.
You need to create a comma delimited list and insert it into a claim, if its already stored as comma delimited, or some other delimited list, then you are already good to go. Otherwise youll need to have B2C send the data to a Rest api to build a comma delimited list.
That claim needs to be shown on the page after 'sign in' in a text box via B2C (hidden with CSS), where javascript on your custom HTML page (configured in B2C) builds a radio box from that list in the hidden text box.
Then the javascript needs to record the choice into another B2C rendered text box. You should then verify at B2C or via Rest api whether the submitted value was valid.
Then issue that value into the token.

Azure B2C EditProfile custom policy without Signing In first

Right now the ProfileEdit.xml file that comes with active-directory-b2c-custom-policy-starterpack asks the user to sign in before actually letting them get to the Edit Profile page.
The use case I'm trying to accomplish is a little bit different. The user is already signed in to the app and there's a button Edit Profile that when clicked will take the user to the Edit Profile page. That is, there should be no Sign in again.
My app allows the user to sign in using: Facebook and Local Account Signin. The custom ProfileEdit B2C policy should know which one the user used to login and just redirect the user to the ProfileEdit policy directly.
I tried messing up with the ProfileEdit Technical Profile but the mods I did didn't work.
Can anyone more experienced with Azure B2C custom policies let me know how to achieve this?
This is normal, imagine someone got to the profile edit link and bookmarked it. Then logged out. Then launched profile edit -> you need them to login, otherwise things break.
So this is actually working perfectly already, just that you will get Single Sign On, such that once you have used the Sign In journey, the Profile Edit journey will skip the sign in step.
You can test it like this:
1. Open a new browser, and use the sign in journey, login and complete.
2. Open a new tab, and paste the Profile Edit link, remove the prompt=login query parameter.
3. Execute the link, you are taken straight to modifying your profile page, rather than seeing a sign in page.

How to customize the type of a User Attribute in Azure?

I have created a set of new User Attributes and used them in my new User flow (Policy) in Azure AD B2C.
These attributes are of data type "Boolean" but when I run the user flow I get a textbox input instead of a checkbox.
Usually, I get the possibility to change it on the portal but now I can not find where to do so now.
Have anything changed?
Once the custom user attribute is added, go to page layout. In my case the attribute to add is on the local account registration page, you select where you have added it or want to add it.
Below you will have appeared the user attributes that that part of the flow has (yours should appear). From there you change the type of ticket, you can also change if it is optional or mandatory ...
Go to Azure AD B2C > User flows (policies) > Your user flow > Page layouts.
The User attributes section of the Page layouts page allows you to change the user input type.

NetSuite customized Customer Login

My use case is that I would like customers to log in via a custom Login Form I have created, but not from NetSuite Login which is publicly accessible. How can I achieve that?Any ideas?
One way to do your own branded custom login page (with your own HTML/CSS), is by creating a form that on submit sends a POST request to https://system.netsuite.com/app/webservices/wslogin.nl?c=######
where ##### is your netsuite account number
the form must submit following attributes:
email
password
taskid // see the help topic Task Ids for valid values e.g.: LIST_MYROLES
role // not required if has a default role specified on the View All Roles page
I don't think that there is a way to block the normal UI login so, that only custom login is allowed.
In addition to what Prasun wrote there are a couple of different approaches to custom login/reg forms.
One is to just hack the login form so that it looks and behaves like you want it to. See the login/registration at http://www.lablearning.com/
The other is to create your own login page using an SSP page and install it to override the built-in login/registration.

Add a profile picture in user registration page in Liferay

I want to add a profile picture while creating an account.....we can get this while editing the myaccount but i want this while creating account. Is there any way of doing this using the default Liferay User registration page?
Make it as a wizard. Before all you ask default user data to register new user. When the new user is created, put a second step to upload the avatar.

Resources