@AbhiBurk Before you send the email, generate a unique cryptographically random token. Save that token in your database and link it to the user id. Then include that token in the link
You don't want to use the ID of the person because then some funny guy could go along and could try to approve a wholel bunch of people. Instead do it the way Rob explained it with a cryptographically safe token which you connect to the user in the backend.
after some pre-missions, I had to kill an Anubis priest. But the problem is that there are 5 of them. The only directives I had was (1) he is wearing a blue cloth (forgot the exact word) and (2) he is coughing a lot. Yet when I arrived at the temple, it was peekish dark. 3 of them were sleeping, So I approached them, but could not see the color of that cloth. I lit a torch to examine them. They did not wake up 😀
I got assigned to a new project recently where an Access database needs to be fixed. The only coworker that knows how that stuff works and can answer my questions still isn't at work
It should sooner or later be redeveloped in JavaEE but for now we gotta get that old junk fixed. My manager already had an unpleasant meeting with other managers that require that thing to work because that other guy (who still didn't show up) doesn't get his shit together.
No idea why he still isn't fired after at least 5 complaints from another coworker.
If that guy isn't here at 11 I will ask our manager if he knows anything... I am so fed up with team partners that do nothing and don't communicate. If he is ill, fine but please tell me about it -.-
I got assigned to a new project recently where an Access database needs to be fixed. The only coworker that knows how that stuff works and can answer my questions still isn't at work
@PASH Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Can anyone please help me creating regex for first name and last name. These names should not allow any spaces, special characters or digits. Really stuck here
I want to share a variable through one html page to javascript page and another html page been loaded from javascript page so I want to access that variable into loaded html page..
I am trying to declare a variable from html page <script type="text/javascript">
var dagExecHistoryForGraph;
</script> it is accessible into example.js file but not into loaded html page.
@zhengquan-bai Shouldn't it not matter if I was originally using modules : true to craft my application? Don't all the files get re-transpiled every time I run webpack?
For 2 hours now there are two (up to about 15 minutes ago three) people in my office that have absolutely nothing to do here. They don't work, they just constantly talk with the other guy that arrived as early as half past ten and are productive like a fucking river rock.
And even after I plugged my headphones in and worked on a project they didn't understand that I was actually working and actively annoyed my and tried to get my attention. Only thing they got was a "fuck off".
I don't understand why it seems to be so hard for so many people here to just do their job.
var y = someValue;
function findX(){
const xml = new XMLHttpRequest();
xml.open('POST' , "http://127.0.0.1:5000/getX");
xml.onload = ()=>{
var respond = JSON.parse(xml.responseText);
}
const Data = new FormData();
Data.append('y', y);
xml.send(Data);
return false;
};
findX();
if i have function like this
what i can use the result from findX() to run another conditional statement ?
I have a function foo which makes an Ajax request. How can I return the response from foo?
I tried returning the value from the success callback as well as assigning the response to a local variable inside the function and returning that one, but none of those ways actually return the response....
Well there's the ability to have custom libraries for that (and it would make bigints objects), it's kind of weird that this is part of the standard while many other things aren't.
we work in binary, binary has as only prime factor "2" (10 has 5 & 2) so only fractions which are of the for (1/(2^n)) can be represented without rounding errors.
Is there a tutorial/course/resource on how to add GridFS to a mongoose schema. How to do this: youtube.com/watch?v=3f5Q9wDePzY but also using mongoose schrma
Guys I am making a switch to front end development (angular), I want to learn TypeScript/JavaScript as much as possible. I am not totally new to JavaScript/TypeScript but I would like to know if there is a learning path that I must follow?
I have already watched many angular courses.. but the angular project that I have been assigned demands more knowledge of typescript/javascript than angular itself. I need to learn state management , patterns ,etc. I am currently trying to learn rxjs as well.. javscript could be overwhelming for someone from c# background
@forresthopkinsa the project's architecture was designed by someone who is on a different continent , he is master in programming. He then gave it to guys who are fresh out of college and now its a complex mix of wow!!! and what??? moments lol