Skip to content

Commit 357d74c

Browse files
committed
promoter registration + login
1 parent 6b2e9d3 commit 357d74c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

PartyTonight/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
</constraints>
171171
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
172172
<fontDescription key="fontDescription" name="Aguda-Regular2" family="Aguda" pointSize="18"/>
173-
<textInputTraits key="textInputTraits"/>
173+
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
174174
</textField>
175175
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f8B-qj-aFx">
176176
<fontDescription key="fontDescription" name="Aguda-Regular2" family="Aguda" pointSize="23"/>
@@ -293,7 +293,7 @@
293293
</constraints>
294294
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
295295
<fontDescription key="fontDescription" name="Aguda-Regular2" family="Aguda" pointSize="18"/>
296-
<textInputTraits key="textInputTraits"/>
296+
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
297297
</textField>
298298
</subviews>
299299
</stackView>

PartyTonight/Controllers/Authorization/PromoterLoginViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ class PromoterLoginViewController: UIViewController {
5454
print("User signed: \(user)")
5555
}, onError: { (error) in
5656
print("Caught an error: \(error)")
57-
} )
57+
}, onCompleted:{
58+
print("completed")
59+
})
5860
.addDisposableTo(disposeBag)
5961
}
6062

PartyTonight/Entities/Token.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ class Token: Mappable {
1919
func mapping(map: Map) {
2020
token <- map["token"]
2121
}
22+
23+
init(){
24+
25+
}
2226
}

0 commit comments

Comments
 (0)