Skip to content

Commit 3383e51

Browse files
committed
Fix Ivle module using env var instead of dot env
1 parent 518307c commit 3383e51

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

lib/cadet/accounts/ivle.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defmodule Cadet.Accounts.Ivle do
99
"""
1010

1111
@api_url "https://ivle.nus.edu.sg/api/Lapi.svc"
12-
@api_key System.get_env("IVLE_KEY")
12+
@api_key Dotenv.load!().values["IVLE_KEY"]
1313

1414
@doc """
1515
Get the NUSNET ID of the user corresponding to this token.

test/fixture/vcr_cassettes/accounts/sign_in#1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=ozaipr2wleccflp10toymiti; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=sddum5n5awd4wymyfl2bil20; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:47 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:48 GMT",
2323
"Content-Length": "15"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/accounts/sign_in#2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=ixih50bscs3up2pvx5fkypjt; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=0rtlaytdbxur0q2ebmlsmylp; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:47 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:48 GMT",
2323
"Content-Length": "2"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/auth_controller/v1/auth#1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=zbfe1ecow0gautunvm0vl11i; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=mbhwacij0jlwn21st5oma2z3; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:46 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:48 GMT",
2323
"Content-Length": "10"
2424
},
2525
"status_code": 200,
@@ -43,10 +43,10 @@
4343
"Content-Type": "application/json",
4444
"Server": "Microsoft-IIS/8.5",
4545
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
46-
"Set-Cookie": "ASP.NET_SessionId=bprx04t4lfglt31tytffzmqj; path=/; HttpOnly",
46+
"Set-Cookie": "ASP.NET_SessionId=jlm0hrgcz5xqb2pc251f0ksm; path=/; HttpOnly",
4747
"X-AspNet-Version": "4.0.30319",
4848
"X-Powered-By": "ASP.NET",
49-
"Date": "Sat, 16 Jun 2018 12:28:46 GMT",
49+
"Date": "Sat, 16 Jun 2018 12:52:48 GMT",
5050
"Content-Length": "15"
5151
},
5252
"status_code": 200,

test/fixture/vcr_cassettes/auth_controller/v1/auth#2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=xtrx1om05w05hdosdfrzk1t1; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=lyg23quppiybqyvips3pshgv; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:46 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:48 GMT",
2323
"Content-Length": "2"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/ivle/fetch_name#1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=qtyp2glxtn14vk3v0rmbhrne; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=xe5hsey2kwxaxzfmd5poiziu; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:47 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:50 GMT",
2323
"Content-Length": "15"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/ivle/fetch_name#2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=jcrp1b2fjtq02h3iw1jm51f1; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=tstdeihouy4q1p010aqajcgs; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:47 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:51 GMT",
2323
"Content-Length": "2"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/ivle/fetch_nusnet_id#1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=g33tyvk4f4qcxs0o0og3caow; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=rzcurbvtleepdvmxegpkvwaq; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:47 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:50 GMT",
2323
"Content-Length": "10"
2424
},
2525
"status_code": 200,

test/fixture/vcr_cassettes/ivle/fetch_nusnet_id#2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"Content-Type": "application/json",
1717
"Server": "Microsoft-IIS/8.5",
1818
"Request-Context": "appId=cid-v1:9bebd252-0be2-48b7-a1db-8e2b70524944",
19-
"Set-Cookie": "ASP.NET_SessionId=cmnryzexfr2unm452fbqcel4; path=/; HttpOnly",
19+
"Set-Cookie": "ASP.NET_SessionId=ip4wxy11wya20ibjah0brqq3; path=/; HttpOnly",
2020
"X-AspNet-Version": "4.0.30319",
2121
"X-Powered-By": "ASP.NET",
22-
"Date": "Sat, 16 Jun 2018 12:28:46 GMT",
22+
"Date": "Sat, 16 Jun 2018 12:52:50 GMT",
2323
"Content-Length": "2"
2424
},
2525
"status_code": 200,

0 commit comments

Comments
 (0)