How to create own login form in Joomla and how to create redirect file after login - authentication

I want to create my own login form. After user login , it will redirect to the mainpage which is same page when use default login form in Joomla in template. The problem is, i want to display the page by using my own login form. not use Joomla login form in template. How to create the login form then display on Joomla template? using php? I hope you can help me. I appreciate that.

You will need to override the components/com_users/views/login view in order to modify the look and feel of the login form. Yes - you will need to know/use PHP in order to do that.

Related

Silverstripe 4 LoginForm redirect default_login_dest

I've created a new page type called LoginPage.php. I'm using $LoginForm in the LoginPage template. I want users to be redirected to another page (HomePage.php) depending on what permissions group they are in. By default, if the user is not an administrator there is no redirect and it just reloads the current URL the user is on (LoginPage.php). I want the user to be redirected to HomePage.php.
I've tried using
Silverstripe\Security:
- default_login_dest: '/home'
But it has no effect. Maybe I'm using it wrong. Could someone please give clarify how to do this.

Create a custom page in Sitefinity

I am new to Sitefinity and looking for a solution to create a custom password protected page that prompts used first with a password form and if successful, would display the content on the page.
That's a standard functionality of the CMS - just create the page and then from the Actions menu select Set Permissions and there you can set that only Authenticated users (or any other role) can have View access to the page.

How to create customized login component in Salesforce?

I understand that we can create a customized login page in Salesforce; but I should create a login component and embed it in our public pages. I should also create another component that allows the user to log out or log in as as a different user. Is this possible?
Not 100% clear on the exact question here, but you don't need to create any custom components in order to customise the login page. This is now standard with Winter '14 - go to the "My Domain" admin menu item and scroll down to "Login Page Branding".
If you're unable to use this for some reason, or it's not what you're after perhaps you could explain further what you're trying to achieve?

change default joomla login page

i'm working on a Joomla web site where i would like to change the default authentication page.
i created a new login menu item and i've tried to hide the com content area so that the login form don't show. instead of the default login form i placed a new better looking login module.
now i'm trying to make this page the default login page.
There are a couple areas in the site where access is restricted to registered users. and if clicked it leads to the default joomla login page. i want the user to be redirected to login from the new one.
can you please help?
The easiest way to obtain your own custom login page is to override the default joomla layout template.
It's actually very easy to do.
Start with your template. In the template directories, you'll need to have an html folder in your template. Inside of that, you'll need a com_users directory, and inside of that - a login folder. Like this:
/templates/YOURTEMPLATE/html/com_users/login
Then, copy /components/com_users/views/login/tmpl/default_login.php into your new login folder you just created.
From here, you can customize the default_login.php file to your hearts content. Be sure to keep the field names and hidden fields intact - be sure to only manipulate layout elements and avoid changing anything to do with the form, form name, destination or fields.
You can do the same for the logout template - and as a bonus, it goes in the same folder in your template.

Joomla mod_login vs com_user

I'm having a very weird issue with user logins.
I'm building a site where all the content/menus are only available after you login.
I made a 'login' through the Modules and assign it the "userlogin" position.
Now when I go to the home page or any page, the login box comes up, but there's also a second login form. It seems to be coming from com_user.
This com_user login form doesn't work. I can't login using any credentials. If it was working I can simply remove my login module.
Is there a way I can either:
get com_user to work with normal user logins
or
disable this and so I can only see the Module login.
I can hide it from CSS, but I want to know where it's coming from.
Check the menu link which you have created should be public.
If these are not public then whenever user clicks it, he/she will be asked for login. Thats why the second login option is coming up.