mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
5b0914c038
• enables the "Send Again button" • enables the display of the number the user entered in the Registration View in this subsequent scene (so they can see whether they should go back or not) • enables the "call me instead button" Reviewed-by: @FredericJacobs
37 lines
1.4 KiB
Objective-C
37 lines
1.4 KiB
Objective-C
//
|
|
// CodeVerificationViewController.h
|
|
// Signal
|
|
//
|
|
// Created by Dylan Bourgeois on 13/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
// This class allows the user to send the server their verification code and request new codes to be sent via SMS or voice.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface CodeVerificationViewController : UIViewController
|
|
|
|
// Where the user enters the verification code they wish to document
|
|
@property(nonatomic, strong) IBOutlet UITextField* challengeTextField;
|
|
|
|
// User action buttons
|
|
@property(nonatomic, strong) IBOutlet UIButton* challengeButton;
|
|
@property(nonatomic, strong) IBOutlet UIButton* sendCodeViaSMSAgainButton;
|
|
@property(nonatomic, strong) IBOutlet UIButton* sendCodeViaVoiceButton;
|
|
|
|
// Displays phone number entered in previous step. There is a UI option (segue) which allows the user to go back and edit this.
|
|
@property (nonatomic, strong) IBOutlet UILabel* phoneNumberEntered;
|
|
|
|
|
|
// User verifies code
|
|
- (IBAction)verifyChallengeAction:(id)sender;
|
|
// User requests new code via SMS
|
|
- (IBAction)sendCodeSMSAction:(id)sender;
|
|
// User requests new code via voice phone call
|
|
- (IBAction)sendCodeVoiceAction:(id)sender;
|
|
|
|
// This ensures the user doesn't keep creating server requests before the server has responded for all buttons that result in server requests
|
|
-(void)enableServerActions:(BOOL)enabled;
|
|
|
|
@end
|