Is it good to save username and password in local storage JavaScript?

|
etekumoses 2022-07-29 22:04:08
Acird Burn 2022-07-29 20:56:01
Looking out for a laravel dev available to help solve an issue dm those interested

Meka ?

Sss 2022-07-29 22:29:43
Alander 2022-07-26 04:17:47
Hi, please I am new on laravel. In hope page, I have one link, when I click on it I receive a error message TARGET CLASS [empresaController] does not exist. Why does it happen?

Import your class on web.php file

Bright 2022-07-29 22:58:27
Laradev 2022-07-29 21:11:38
When I started learning, I’d say I could debug an error for like 2-3hours alone, I begun in 2020 during covid-19, I had no study groups, nobody to run to help me or direct me, was just me and YouTube, stack-overflow always came through, I learnt bit by bit, am not yet there but the confidence just came through, no developer forces confidence btw, this is something you should just feel, I landed my first job in 2022 Jan 1st, did it for three months, landed another freelancing job in March-june, now it’s July am hoping for another challenge to come through soon, with this job I always checked how my senior are structuring and writing their code, my coding skills just shot up and now am confident about myself and my stack, if you have a good senior to guide you as a developer, please fancy them, some of us could debug an error from morning to evening, this is just my story I like to tell

Good one, I have have been searching for a job, for long I’m proud of you.

one_and_only_abhi 2022-07-30 07:08:15
Hikuroshi 2022-07-25 11:24:16
Hello, I’m automatically generating a slug from the title,
The slug is unique while the title is not.
The problem is that if the title is the same, then the slug is the same, and it will be an error
How to make the slug automatically add the numbers behind so that nothing is the same. For example title-1 title-2….

Go to medium.com and open one of article and understand their Post url structure.

TheHunter_95 2022-07-30 12:14:59
Is it good to save username and password in local storage JavaScript ?
Web Developer 2022-07-30 12:23:54
TheHunter_95 2022-07-30 12:14:59
Is it good to save username and password in local storage JavaScript ?

Nope

Web Developer 2022-07-30 12:24:15
But actually it’s depends on situation
TheHunter_95 2022-07-30 12:25:29
Web Developer 2022-07-30 12:24:15
But actually it’s depends on situation

I have an idea
When i hit api to login
After hitting if i get success
Then store loggedin as a key and yes as a value and check for login on many pages ?

Web Developer 2022-07-30 12:30:55
Store in cookie
Web Developer 2022-07-30 12:31:05
Not in local storage
TheHunter_95 2022-07-30 12:32:22
Web Developer 2022-07-30 12:30:55
Store in cookie

Store username and password in cookie ?

etekumoses 2022-07-30 12:32:50
DesolatorMagno 2022-07-29 20:44:25
Ok, vamos de forma visual, para ti esto es cierto? un edificio es igual a un solo bloque?

I am not getting it well Reny

etekumoses 2022-07-30 12:33:01
kindly clarify for me
Web Developer 2022-07-30 12:33:04
TheHunter_95 2022-07-30 12:32:22
Store username and password in cookie ?

Or session too

TheHunter_95 2022-07-30 12:33:35
Web Developer 2022-07-30 12:33:04
Or session too

Session in JavaScript
I didn’t knew this

Acird Burn 2022-07-30 12:33:52
Has anyone used golang with laravel for real time communication
Web Developer 2022-07-30 12:33:55
Ohh sorry
Web Developer 2022-07-30 12:34:05
I am still thinking that it’s laravel
etekumoses 2022-07-30 12:34:12
Acird Burn 2022-07-30 12:33:52
Has anyone used golang with laravel for real time communication

neda sebbo

Web Developer 2022-07-30 12:34:16
Sorry for that
Web Developer 2022-07-30 12:34:34
If it’s js store it in local storage๐Ÿ‘๐Ÿป
Acird Burn 2022-07-30 12:35:21
Acird Burn 2022-07-30 12:33:52
Has anyone used golang with laravel for real time communication

performance wise between socket.io and go which gives a better performance. For real time communication

etekumoses 2022-07-30 12:39:09
Hey team i am trying to implement this logic public function login()
{
$checkstatus = AdminSetting::where([‘key’ => ‘status’])->first() == ‘active’;
if($checkstatus){

return view(‘voter-views.auth.login’);
}else{
return view(‘voter-views.counter’);
}
}

etekumoses 2022-07-30 12:39:25
but its always returning false
etekumoses 2022-07-30 12:39:37
so i dont know what i have to
Web Developer 2022-07-30 12:40:10
etekumoses 2022-07-30 12:39:09
Hey team i am trying to implement this logic public function login()
{
$checkstatus = AdminSetting::where([‘key’ => ‘status’])->first() == ‘active’;
if($checkstatus){

return view(‘voter-views.auth.login’);
}else{
return view(‘voter-views.counter’);
}
}

It will always return false

etekumoses 2022-07-30 12:40:21
why
Web Developer 2022-07-30 12:40:22
You have written wrong quey here check again
etekumoses 2022-07-30 12:40:35
how do i do it well and make it work
Web Developer 2022-07-30 12:41:34
Can you just tell me your condition???
Web Developer 2022-07-30 12:41:47
Like what should be in where condition
Web Developer 2022-07-30 12:42:15
And tou are checking with which field in Adminsetting table
Web Developer 2022-07-30 12:42:25
You*
etekumoses 2022-07-30 12:42:34
like i want to site so to active or inactive so if its active take to login if not show counter page or not yet ready
Web Developer 2022-07-30 12:42:49
Active is of which field value???
Web Developer 2022-07-30 12:43:00
What is the column name???
etekumoses 2022-07-30 12:43:17
Web Developer 2022-07-30 12:42:15
And tou are checking with which field in Adminsetting table

the table has keys and values only so the key is status and value can be active or inactive

etekumoses 2022-07-30 12:45:16
laravel_discuss-131340.jpg
This is the counter page or view
etekumoses 2022-07-30 12:45:29
but i was wondering if i should create its own route
Web Developer 2022-07-30 12:45:59
Can you show me table ss
etekumoses 2022-07-30 12:46:09
ok
etekumoses 2022-07-30 12:48:44
laravel_discuss-131344.jpg

Web Developer 2022-07-30 12:49:48
Okay wait
etekumoses 2022-07-30 12:51:31
cool
Web Developer 2022-07-30 12:51:40
Hey team i am trying to implement this logic public function login()
{
$checkstatus = AdminSetting::where(key’, ‘status’)->where(‘value’,’active’)->get();
if(count($checkstatus) == 0){

return view(‘voter-views.auth.login’);
}else{
return view(‘voter-views.counter’);
}
}

Web Developer 2022-07-30 12:51:50
Try this one
Web Developer 2022-07-30 12:55:13
Working??
etekumoses 2022-07-30 12:56:37
let me try
Web Developer 2022-07-30 12:57:03
Hey team i am trying to implement this logic public function login()
{
$checkstatus = AdminSetting::where(key’, ‘status’)->first();
if($checkstatus->value == “active”){

return view(‘voter-views.auth.login’);
}else{
return view(‘voter-views.counter’);
}
}

Web Developer 2022-07-30 12:57:14
You can try this too
|