1236
Views
13
Comments
Solved
Login screen
Application Type
Traditional Web

Hey! Nedd your help again!


So, I am building an app which has a part for admin and the admin needs to login to acess but I don“t know how to do that. Do I need a database to store username and password, for example? How do I check if the username and password are correct and other information about login, I don“t know nothing...

So, can you help me? I tried to see videos on YouTube but I saw nothing...

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

create a new application and see how it works, learn from there what to do

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi,

The beat OutSystems training van be found on www.outsystems.com/learn

OutSystems comes with build in authentication thru the Users application. When you start creating an application be it traditional, reactive or mobile, the template that is used for your application has already the login, logout and authentication build in. So you don't need to do anything.

You can define roles, liker an admin role and assign that role to specific users and specific screens.

Regards,

Daniel

UserImage.jpg
Rio de Imagem Lda

Hey Daniel!

But I already have the app ready, the only thing missing is the login activity ( I only thought of this yesterday). Do I still have accesse to that templates?

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi,if you currently don't have to login than that is caused by the fact that you checked on the screen properties the screen time anonymous.

If you uncheck this role, and the registered role is checked and publish again a login screen should appear.

UserImage.jpg
Rio de Imagem Lda

Hey Daniel! I don“t have the parte that says admin and sales. I only have "anonymous" and "registered"

How do I do that? 

Capturar.PNG
2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Have a look at this, you need to add the roles you need. Or you use the Register role which is default available for all screens.

UserImage.jpg
Rio de Imagem Lda

It dosent let me acess "this". It says it is unavailabed

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

try again copy/paste error from my side, sorry

UserImage.jpg
Rio de Imagem Lda

Okay, already checked and created the 2 new roles but my question is still the same. Where do I save the login info/ the user info? How do I crete a login activity/screen and check if the user/ login info is correct??

Capturar.PNG
2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Again, if you created a new application your login screen is automatically created including all logic.

If you assign a register role or any role you yourself define to a screen, the user will automatically be promted the login screen. 

You do not need to code that.

Maybe you share your OML, because honestly this is OutSystems fundamentals, what you would learn in the first few training videos you watch on www.outsystems.com/learn


UserImage.jpg
Rio de Imagem Lda

I am not understanding.. Herer you go, my OML is here

ScrumBoardAdmin.oml
2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Ok now I see your situation

On any new application you create OutSystems automatically adds a login screen and logic in the Common UI Flow, but you don't have it, I can only conclude you must have deleted it. 

What you can try is to ceate a new application and copy over the login screen to your module

UserImage.jpg
Rio de Imagem Lda

I don't remember seeing it...

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

create a new application and see how it works, learn from there what to do

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.