diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html index ce1361af66b3d40154f8d4ac496e5dbe96a10bae..b3780901488cab6fb74d25f18bcdf1200ca3abd7 100644 --- a/app/templates/auth/SignUp.html +++ b/app/templates/auth/SignUp.html @@ -96,12 +96,11 @@ <textarea class="form-control" id="reason" name="reason" placeholder="Enter Reason for Account Request" required></textarea> </div> <br> - <div class="col-md-7 col-sm-7 my-col"> -<!-- - <br><input class="checks" id ="agree" type="checkbox" name="agree" value="agree" onchange= check() />Agree to proceed<br/> ---!> + <div class="col-md-10 col-sm-10 my-col"> + <br><input class="checks" id ="agree1" type="checkbox" name="agree" value="agree" onchange= check() /> I have read & accept UAB IT's <a href="https://secure2.compliancebridge.com/uab/public/index.php?fuseaction=print.preview&docID=786" target="_blank">Acceptable Use Policy</a> and <a href="https://www.uab.edu/it/home/policies/data-classification/classification-overview" target="_blank">Data Classification Policy</a><br/> + <input class="checks" id ="agree2" type="checkbox" name="agree" value="agree" onchange= check() /> I also understand that it is my responsibility to follow all relevant <a href="https://www.uab.edu/it/home/policies" target="_blank">IT policies</a> when using this resource.<br/> <button class="btn btn-danger btn-md" id="cancel" name="cancel" type="button" onClick="renderDom('Account Creation Cancelled','{{ cancel_msg |safe }}', null)">Cancel</button> - <button class="btn btn-primary btn-md" id="submit" name="submit" type="button" value="Submit" onclick="displayloading1();request_account()"> Create Account</button> + <button class="btn btn-primary btn-md" disabled id="submit" name="submit" type="button" value="Submit" onclick="displayloading1();request_account()"> Create Account</button> </div> </form> </div> diff --git a/tasks.py b/tasks.py index b2eddf3bf10f22e55af427fecc9ccbc0184675ac..7753ceaf01b2a989030be03a8cecd763ac0c1b6d 100644 --- a/tasks.py +++ b/tasks.py @@ -72,13 +72,14 @@ def celery_create_account(json, session): email= json['email'] fullname= json['fullname'] reason= json['reason'] -# aup= json['aup'] queuename= rc_util.encode_name(username) + updated_by= f'{username}' + host= vars.app_host print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') send_msg('creating account', room) print(username) - rc_util.add_account(username, queuename, email, fullname, reason) + rc_util.add_account(username, queuename, email, fullname, reason, updated_by, host) print('sent account info') print('Waiting for completion...') rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room))