Is there a way for me to pass the oobcode value to the postresetusername function in views.py?
reset_username.html
<script type="text/javascript">
var oobcode;
function func(){
oobcode = localStorage.getItem("storageName");
}
</script>
views.py
def postresetusername(request):
authe.verify_password_reset_code(oobcode,"new_password")
return render(request, "reset_username.html")